How long do you need to watch a car?
A model watches a car’s trip in 60-second segments and scores four driver types: aggressive, cooperative, normal and autonomous. The more of the trip it sees, the better it picks out aggressive drivers.
How to use it: pick a car, then press Playpress Next prediction or drag the timeline. Scores update after each segment used.
These are simulated vehicles, not real drivers. Predictions are saved model results, not a live model.
Aggressive AP (average precision), 301,423 cars
Recorded path
Distance over time (flat = stopped)
used skipped, fully stopped
1x plays 30 s of the trip each second
Across many cars, seeing more helps
The bars above are for one car. This chart is for 301,423 cars, the same ones at every point. AP (average precision) measures how well the model ranks aggressive cars above the rest: 1 is perfect, and random ranking would score about 0.117.
first segments, with 95% interval random segments the current car
The first-segment curve makes the gain look bigger. Random segments from the same cars go from 0.641 to 0.944. They score higher than first segments through segment 4, then there's no clear difference. We don't know why early segments score lower.
When should it decide?
Suppose the model commits to its top class the first time that score reaches a threshold. A higher threshold means it waits longer.
Share of the 301,423 cars with a decision, by segments seen
Ranges are 95% intervals. 90% is just the starting value, not a recommended threshold.
AP values in a table
| Segments | First segments | 95% interval | Random segments | 95% interval |
|---|---|---|---|---|
| 1 | 0.563 | 0.413 to 0.676 | 0.641 | 0.492 to 0.739 |
| 2 | 0.794 | 0.670 to 0.865 | 0.824 | 0.713 to 0.883 |
| 3 | 0.874 | 0.782 to 0.920 | 0.888 | 0.802 to 0.930 |
| 4 | 0.912 | 0.841 to 0.946 | 0.917 | 0.851 to 0.949 |
| 5 | 0.933 | 0.878 to 0.960 | 0.934 | 0.878 to 0.960 |
| 6 | 0.945 | 0.897 to 0.967 | 0.944 | 0.897 to 0.967 |
Cars in the chart
301,423 held-out cars, each with at least 6 segments in which it moved, from 21 test scenarios (13 with aggressive drivers). They were observed for longer than most cars, so they don't represent the full test set. Mix: 11.7% aggressive, 20.6% cooperative, 31.9% normal, 35.8% autonomous.
Uncertainty
The 95% intervals come from resampling whole scenarios 1,000 times. They don't include differences from retraining the model. Random results are the average AP over 5 draws per car, taken from the whole trip.
Example cars
These are examples, not a representative sample. From held-out cars with exactly 6 usable segments, three were drawn at random for each of four rules. The page shows the first one drawn for each. We chose that approach after seeing all 12 cars.
Limits
Most of what the model sees of each example car (96-100% of the seconds it uses) is on one congested road. In separate test runs of this simulation, stopped cars there were packed unrealistically close. We haven't checked how much that affects these results, so they apply only to this simulation.
Model
A trained CNN-LSTM (a neural network for sequences) turns each segment into a vector. A small classifier scores the average of the vectors so far, so it can't use future segments. The bars and chart use the same model.