F1-ML
2024 / Data Study
Formula 1 · 2024

WHAT
MAKES
A LAP
FAST?

An exploration of Formula 1 performance through telemetry, statistical analysis, and machine learning.

2024
SEASON
04
CIRCUITS
XGBOOST
MODEL
BAHRAIN
QUALIFYING
2024
SECTOR 02
39.102 S
TELEMETRY
● LIVE TRACE
LAP TIME
01:32.421
Scroll to explore
00 / 09
01 / The Data

EVERY LAP
TELLS A STORY.

We started with Formula 1 telemetry from the 2024 season and turned it into a dataset designed to answer one question: what actually separates a fast lap from an ordinary one?

2024
SEASON
Formula 1
04
CIRCUITS
Bahrain · Monaco · Monza · Silverstone
02
SESSION TYPES
Qualifying + Race
14
FEATURES
Telemetry + tyre + sector data
What we measure

From telemetry
to performance.

01
SECTORS
S1 · S2 · S3
02
SPEED
I1 · I2 · FL · ST
03
TYRES
Compound · Life · Fresh
04
LAP TIME
Measured in seconds
First question

If lap time is the result,
where is that time actually being won?

02 / The Lap

THE CLOCK
DOESN'T LIE.

Every qualifying lap is a measurement of performance. Before looking at sectors, tyres, or machine learning, we start with the number every driver is ultimately trying to reduce.

Dataset
Bahrain · Qualifying · 2024
Loading telemetry...
—
FASTEST LAP
Awaiting data
—
BEST OBSERVED
Awaiting data
0
LAPS ANALYSED
All drivers
What we see

The gap between laps looks small.
In Formula 1, small gaps are enormous.

A few tenths can separate multiple positions on a qualifying grid. But a lap time is only the final result. To understand where those tenths come from, we have to break the lap apart.

Next03 / The Sectors
03 / The Sectors

WHERE
TIME DISAPPEARS.

A lap is not one continuous effort. It is three sectors, each with its own corners, straights, compromises, and opportunities. Breaking the lap apart reveals where the differences actually come from.

Select sector
SECTOR 01
Loading sector data...
—
FASTEST SECTOR
No data
—
FIELD AVERAGE
SECTOR 01
—
SLOWEST SECTOR
No data
The takeaway

The fastest lap is built
one sector at a time.

The driver who wins a sector does not necessarily win the lap. Different cars and drivers can trade time from one part of the circuit to another. The interesting question is not simply who is fastest — but where they are fastest.

Next04 / Speed
04 / Speed

CARRY
THE SPEED.

Lap time tells us who was fast. Speed measurements tell us something different: where that performance was expressed on the circuit.

Speed measurement
SPEED TRAP
Loading speed data...
—KM/H
HIGHEST SPEED
No data
—KM/H
FIELD AVERAGE
SPEED TRAP
—KM/H
FIELD SPREAD
Fastest → slowest
The takeaway

Speed is not just about
going faster.

Every speed trap measures a different moment of the lap. A car can be dominant through one part of the circuit and give away time somewhere else. Performance is about the combination.

Telemetry points
I1 · I2 · FL · ST
Four measurements. Four different glimpses into how a car generates and carries performance around a circuit.
Next05 / The Tyres
05 / The Tyres

GRIP
HAS A PRICE.

A tyre does not remain equally fast forever. As laps accumulate, performance changes. That loss of pace is the price of using the grip available at the start of a stint.

Compound
Maximum grip · shorter life
Circuit
Loading tyre data...
—/ LAP
AVERAGE DEGRADATION
SOFT
—/ LAP
LOWEST DEGRADATION
No data
—/ LAP
HIGHEST DEGRADATION
No data
The takeaway

The fastest tyre
is not always the best tyre.

Peak performance is only one part of tyre strategy. The rate at which that performance disappears matters just as much. A tyre that gives up less time per lap can change the shape of an entire stint.

SOFT
PEAK GRIP

Fastest initial performance, but generally the shortest useful window.

MEDIUM
BALANCE

A compromise between outright pace and usable stint life.

HARD
ENDURANCE

Lower peak performance, but designed to survive longer.

Next06 / Race Pace
06 / Race Pace

SPEED
THAT LASTS.

One fast lap proves that a car can be quick. Sustained pace tells us whether that speed survives the demands of a stint.

Circuit
Compound
Driver
Loading race pace data...
—
BEST OVERALL PACE
No data
—
STRONGEST LATE STINT
No data
—
PACE SPREAD
Average normalized pace difference
What we're seeing

Race pace is not
a single number.

The chart follows normalized pace as tyre life increases. The interesting part isn't simply who starts fastest. It is who can maintain a competitive pace deeper into the stint.

Driver comparison
The takeaway

The fastest car isn't necessarily
the car that stays fastest.

Next07 / The Model
07 / The Model

TEACHING
A MACHINE
TO GO FAST.

The final step was turning the analysis into a prediction problem: can a machine learn the relationship between telemetry and lap time?

ALGORITHM
XGBOOST
Gradient boosted decision trees
TASK
REGRESSION
Predict continuous lap time
TARGET
LAP TIME
Measured in seconds
Model performance
FINAL MODEL / FOUR CIRCUITLOWER MAE = BETTER
What the model learned

Not every
feature
matters equally.

Feature importance gives us a window into which inputs contribute most to the model's lap-time predictions.

Model
FOUR CIRCUIT
Feature importance
XGBOOST
Loading model features...
Prediction vs reality

How close
did it get?

A regression model is only useful if its predictions remain close to the observed lap times.

Experiment
WITH SECTOR TIMES
Loading predictions...
The pipeline
01
INPUT
Telemetry + tyre data
02
FEATURES
Encode + prepare
03
XGBOOST
Train regression model
04
PREDICTION
Estimate lap time

We started with
raw telemetry.

We ended with
a prediction.

Next08 / The Verdict
08 / The Verdict
After the data

SO,
WHAT MAKES
A LAP
FAST?

The short answer

A fast lap is not
created by one number.

It is the result of multiple parts of the lap working together — sectors, speed, tyre state, and the conditions surrounding them.

Four things stand out
01

SECTOR TIME

Lap time is ultimately built sector by sector. A gain in one part of the circuit can become a measurable advantage over the full lap.

02

SPEED

Straight-line and terminal-speed measurements give the model information about how efficiently a car is carrying and generating speed.

03

TYRE STATE

Tyre compound and tyre life provide the context around the pace. The same car does not produce the same performance on every tyre state.

04

COMBINATION

The interesting part is the interaction between these variables. Performance emerges from the combination rather than from one isolated measurement.

What the model says

The data
gets more
specific.

Highest feature importance
...

Among the features used by the final four-circuit model, the leading feature carries the highest model-derived importance.

Feature ranking
Reading model...
XGBOOST
MODEL
...
MAE
...
R²
The answer

A FAST LAP
IS A SYSTEM.

No single measurement explains performance on its own. The lap emerges from the interaction between the circuit, the car, the tyres, and the driver's ability to turn all of that into speed.

Analysis complete
2024 / FORMULA 1 / MACHINE LEARNING
Next09 / The End
F1-ML
2024 / Data Study
09 / The End

DATA.
ANALYSIS.
SPEED.

A study of Formula 1 performance using telemetry, statistical analysis, and machine learning.

Final thought

The fastest lap isn't
found in one number.

It is built from hundreds of small decisions, measurements, and interactions — compressed into a single number on the timing screen.

Built with
PYTHONFASTF1XGBOOSTNEXT.JSTAILWIND
FORMULA 1 · MACHINE LEARNING · 2024
09 / 09