Case Study

F1 Race
Intelligence
Dashboard

Season analytics, a broadcast-style replay player, and a pace model that publishes its own weakness next to the forecast, built for fans who want to understand strategy beyond the broadcast.

8
Dashboard Pages
Season, race, replay, strategy, rivals
46
Test Files
Modules covered by the test suite
30
Glossary Terms
Defined in English and Indonesian
4 Hz
Telemetry
Speed, throttle, brake, DRS, gear
The problem

Strategy is invisible to fans

F1 strategy unfolds in seconds: tire degradation, track position, undercut windows. Broadcasters show you who pitted, not why. The data to answer why is public, but it arrives as raw timing frames and partial telemetry that never becomes readable on its own.

The solution

A dashboard that explains itself

  • Eight pages covering season analytics, race centre, and replay
  • Walk-forward backtest scored against the grid-order baseline
  • Every derived figure labelled estimated, with the sample size behind it
  • Bilingual explainer layer so a first-time viewer can read the charts
How it was built

Data Pipeline

OpenF1 client with a rate limiter, retries, and a disk cache. A race is downloaded once, then replayed from a local SQLite cache instead of hitting the API again.

Feature Construction

Lagged features only: grid position, team pace, driver form, positions gained, and DNF rate. Every row a race is scored on is built from rounds before it, so the model cannot learn the result it is predicting.

Model

Ridge regression on five z-scored features, with a documented hand-weighted fallback (grid 0.40, team pace 0.35, form 0.25) used when history is too short to fit. The page says which engine produced each forecast.

Backtest

Walk-forward scoring against the naive baseline of "the finishing order equals the grid". F1 grids are strongly predictive, so the model has to beat that baseline to be worth showing.

Dashboard

Eight Streamlit pages: championship standings, race analysis, a broadcast-style replay player, strategy simulator, sector insights, setup fingerprint, and a competitor watchlist.

Tech stack
Python
Core language
OpenF1
Live timing and telemetry feed
FastF1
Session and lap data extraction
Streamlit
Dashboard UI, eight pages
Plotly
Telemetry and pace charts
Pandas
Frame normalisation and joins
NumPy
Ridge fit and feature scaling
SQLite
Local race cache for replay

See it live

The dashboard is publicly deployed on Streamlit Cloud.