BOX BOX BOX · S6E5
LIVE PROJECTNext-lap classification

F1 STRATEGY INTELLIGENCE

Predict the next pit stop. Before the radio call.

A lap-level machine-learning project that turns tyre, timing, position and race context into an actionable pit probability.

01Built from the full notebook workflow—not a generic dashboard.
CURRENT LAP31 / 78Monaco · 2025
PIT PROBABILITY78%Prepare the crew
CLICK · TO · PUSH
TYRE LIFE18 lapsInside pit window

BUILT ON REAL PROJECT OUTPUTS

439,140Lap observations
26Race contexts
13Model features
0.95328Public ROC AUC

THE STRATEGY LOOP

From race state to pit-wall decision.

The project follows the same question a race engineer asks every lap: what has changed, and is it enough to stop?

01

READ THE RACE

Every lap becomes a strategy signal.

Tyre age, race progress, stint, position and timing context are assembled into one lap-level view.
02

FIND THE WINDOW

Patterns become pit-stop pressure.

Exploratory analysis reveals the windows, circuit effects and synthetic-data anomalies that shape the prediction.
03

MAKE THE CALL

A probability arrives before the next lap.

The final blend ranks the chance of a stop so the result reads like a pit-wall decision, not a black-box score.

THE BEST MODEL

Two models. One sharper strategy call.

LightGBM + RealMLP combine nonlinear race context with a different decision boundary. Their out-of-fold blend delivers the strongest saved submission.

Open the interactive model lab
PUBLIC ROC AUCBEST SAVED
0.95328
LightGBM42.5%
RealMLP57.5%
DEPLOYMENT DECISIONBest score ≠ deployed model

The production API serves the baseline LightGBM rather than the higher-scoring LightGBM + RealMLP blend. Loading and running both models would exceed the available backend memory and compute budget, putting the server process at risk of a crash. Without those infrastructure constraints, the clear deployment choice would be the two-model blend.

EXPERIMENT SCORECARD

Every run moved the strategy forward.

COMPETITION METRICROC AUCHigher is better

Eight saved experiments show how stronger validation, feature engineering and model diversity lifted the leaderboard result.

Score progression

Ordered from the earliest saved run to the winning blend.

OOF / validationPublicPrivate
No ESStarting point
Baseline
Public +0.00327Private +0.00344OOF —
EDA LGBM
Public ±0.00000Private ±0.00000OOF +0.00204
XGB Group
Public +0.01258Private +0.01269OOF +0.03224
XGB FE
Public +0.00198Private +0.00190OOF +0.02097
LGBM FE
Public +0.00205Private +0.00188OOF +0.00176
RealMLP FE
Public +0.00022Private +0.00059OOF +0.00059
Blend
Public +0.00069Private +0.00054OOF +0.00077

Lines use a focused 0.89–0.96 axis. The private leaderboard is the primary score and receives the strongest visual emphasis.

Complete experiment and submission score comparison
Experiment / SubmissionRelated fileValidation / OOFPublicPrivateNotes
BESTLGBM + RealMLP blendsubmission_blend_lgbm_realmlp - lb - 0.95328.csv0.9538760.953280.95369Best saved submission; OOF blend used 42.5% LGBM and 57.5% RealMLP.
RealMLP with feature engineeringsubmission_realmlp_fe - lb-0.95259.csv0.9531050.952590.953156-fold StratifiedKFold OOF; mean fold AUC 0.953109.
LGBM with feature engineeringsubmission_lgbm_fe.csv0.9525110.952370.95256OOF score loaded in the blend notebook.
XGBoost with feature engineeringsubmission_xgb_stratified_fe - lb 0.95032.csv0.9507520.950320.950685-fold StratifiedKFold OOF; mean fold AUC 0.950761.
XGBoost OOF GroupKFoldsubmission_xgb_oof_groupkfolds - 0.94834.csv0.9297800.948340.948785-fold GroupKFold by race; mean fold AUC 0.929450.
Baseline EDA LightGBM notebooksubmission-baseline-lgbm-0.93576.csv0.8975400.935760.93609Year-holdout validation using 2025 as validation.
Baseline LGBM submissionsubmission.csv0.8955000.935760.93609Baseline predictions; experiment notebook year-holdout validation.
LGBM without early stoppingsubmission (1).csvN/A0.932490.93265No validation score found in the checked notebooks.

HOW THE SIGNAL MOVES

Five stages · one next-lap probability
01Lap state
02Feature engineering
03OOF models
04Blend
05Pit probability

READY ON THE PIT WALL

See the decision form, lap by lap.

Run a scenario Read the detailed EDA