AI-Assisted Decision Support for Formula 1 Pit-Stop Strategy: Deep Reinforcement Learning and Mathematical Programming

Felipe Méndez, Charles ThravesarXiv 2026

Imagine you’re a Formula 1 race strategist. It’s lap 35 at Silverstone. Your driver is complaining about rear grip, the sky looks ominous, and your main rival just dove into the pits for a set of Hards. You have about 15 seconds to decide: do you "undercut" them now, or stay out and pray for a Safety Car?

This paper explores how to navigate that high-speed chaos using a blend of Deep Reinforcement Learning (DRL) and classic mathematical optimization.

TL;DR

Formula 1 pit-stop strategy is a high-stakes game of "what-if" played under extreme uncertainty. This paper develops an AI that uses Deep Reinforcement Learning to outperform traditional mathematical models and even real-world human strategies by simulating thousands of potential race futures to find the optimal balance of risk and reward.

What Problem Does This Paper Address?

In F1, the fastest car doesn't always win; the car with the best strategy often does. Strategists must manage tire degradation (tires get slower as they wear), fuel loads, traffic, and the ever-present threat of a Safety Car.

The challenge is that the "perfect" mathematical solution is easy to find for a single car in a vacuum. But add 19 other aggressive drivers and the random chaos of accidents, and the problem becomes "computationally explosive." Traditional math models (like Mixed-Integer Programming) struggle to "see" the probabilistic nature of a race, while human intuition can be clouded by pressure. The authors wanted to see if AI could bridge this gap—handling the complexity of a full grid while remaining reliable enough for a team principal to trust.

Methods

The researchers built a sophisticated, data-driven F1 simulator calibrated with real data from the 2021–2024 seasons. This wasn't just a simple game; it modeled:

  • Tire Physics: How different compounds (Soft, Medium, Hard) lose grip over time.
  • Overtaking: A "logit model" to predict the probability of a pass based on time gaps.
  • Chaos: Stochastic events like Virtual Safety Cars (VSC) and full Safety Cars (SC).

They then unleashed five different Deep Reinforcement Learning (DRL) algorithms—including Proximal Policy Optimization (PPO) and Deep Q-Networks (DQN)—to learn the "policy" of when to pit.

To keep the AI honest, they compared it against a Quadratic Mixed-Integer Programming (QMIP) benchmark. Think of QMIP as the "perfect student" who is great at math but surprised by fire drills; it finds the absolute best path assuming no unexpected yellow flags.

Datasets

The study utilized a massive haul of public F1 data:

  • FastF1 & OpenF1: Telemetry, lap times, tire usage, and weather from the 2021–2024 seasons.
  • 2024 Season Evaluation: The models were specifically tested against eight iconic circuits from the 2024 calendar (like Bahrain, Spa, and Singapore).

The researchers used a variety of variables to train the model, ranging from the current lap number to the exact time gap to the car behind.

Table 1: Description of the independent variables used in the regression model to predict lap times.

Key Insights and Ideas

  • Anticipating the Unpredictable: Unlike the math-heavy QMIP, the PPO agent learned to "hedge its bets." It realized that pitting under a Safety Car is "cheaper" (you lose less relative time), so it occasionally chose strategies that left the door open for a lucky yellow flag.
  • The Optimality Gap: In simple, "boring" races with no traffic, the DRL agents were nearly as good as the perfect mathematical optimum. This proved the AI wasn't just "getting lucky"—it was actually learning the underlying physics of the race.
  • AI as a "Look-Ahead" Mirror: The authors propose using the AI not as an autonomous pilot, but as a decision-support tool. It can show a human strategist a distribution of outcomes: "If we pit now, we have a 60% chance of P3, but a 10% chance of getting stuck in traffic and finishing P8."

Key Results

  • Beating the Humans: In replays of actual 2024 races, the PPO agent finished 0.66 positions ahead of the strategies actually used by the real F1 teams. In a sport where championships are decided by milliseconds, half a position per race is an eternity.
  • DRL vs. Math: In complex, stochastic simulations, PPO outperformed the "perfect" QMIP model by 0.33 to 0.49 positions.
  • Algorithm Choice Matters: Not all AI is created equal. While PPO and its recurrent variant (which has a "memory") excelled, other popular algorithms like TRPO were significantly weaker, proving that the specific "flavor" of AI is critical for sports strategy.

Limitations and Future Work

The authors are the first to admit the "paddock" is still a complex place:

  • Strategic Rivals: Currently, the "rival" cars in the simulator follow historical patterns. They don't yet "react" to the AI agent’s moves (e.g., a rival doesn't intentionally block the agent's "undercut"). Future work could involve Multi-Agent RL where everyone is trying to outsmart each other.
  • Live Telemetry: The current model uses data available before the race. Integrating live, "in-the-moment" telemetry (like real-time tire temperatures or engine modes) would be the next step toward a real-time pit wall tool.
  • The Human Element: While the AI is fast, the paper doesn't yet explore how a human strategist might override the AI based on "gut feel" or unmodeled data (like a driver's tone of voice on the radio).

Summary updated

Abstract

Pit-stop strategy in Formula 1 is a sequential decision problem under uncertainty, in which strategists decide at each lap whether to pit and which tire compound to fit. We develop a data-driven simulator, calibrated with historical race data, that captures tire degradation, drivers' recent performance, overtaking, yellow flag events, and rivals' pit-stop decisions. We train agents with five Deep Reinforcement Learning (DRL) algorithms and compare them with a Quadratic Mixed-Integer Programming (QMIP) formulation that is optimal in deterministic single-driver settings. Without uncertainty or competition, all DRL methods except TRPO achieve near-optimal performance. With a full grid of competitors and stochastic race events, the ranking of DRL methods depends on the evaluation setting: Proximal Policy Optimization (PPO) and its recurrent variant are the only methods that improve on the QMIP both in fully simulated races and when the actual 2024 races are replayed. Averaged over eight circuits, PPO improves on the QMIP by 0.33 and 0.49 positions in the two settings and Recurrent PPO by less, and in the replay PPO finishes 0.66 positions ahead of the drivers' actual strategies simulated in the same races. The QMIP performs similarly to the other methods, even though it cannot anticipate yellow flag events. Finally, we use the trained PPO policy as a look-ahead decision-support tool that shows the strategist the distribution of race outcomes under each candidate pit-stop action. Applied retrospectively to eight 2024 races, the look-ahead identifies the laps where the actual decision, the recommendation, or a third action was preferable.
BibTeX
@misc{mendez2026ai,
  author = {Felipe Méndez and Charles Thraves},
  title = {{AI-Assisted Decision Support for Formula 1 Pit-Stop Strategy: Deep Reinforcement Learning and Mathematical Programming}},
  year = {2026},
  eprint = {2611.26909},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26909},
}
Figure