Skip to content

Driving data: hours purchased is not scenarios covered

THE ARGUMENT

A driving dataset is usable to the extent that your target scenario appears often enough and is correctly annotated each time, not to the extent that it is long; that claim only holds once you can write your target scenario as a decidable definition.

On this page

The quote says two hundred hours of urban driving, six cameras plus one lidar and five radars, priced per hour, with a discount above a certain volume. You turn to the first line of your requirements document: cut-in ahead, at night, in rain. You ask the vendor how many segments in those two hundred hours are exactly that. There is a pause, then: "our labels are comprehensive." That does not answer the question, because comprehensive describes the number of categories; you asked for the count of one category under one condition. This article takes the billing unit apart and looks at how many layers sit between an hour and the thing you are trying to buy.

Start by computing a denominator

Two hundred hours cut into twenty-second scenes is thirty-six thousand segments. That is arithmetic, not a fact about any dataset. Suppose the vendor's scenario labels include cut-in, and it fires on twelve hundred segments, a bit over three percent. Add night and rain and you may be down to a few dozen. You are training a model to detect cut-ins at night in rain, and the segment count that actually matters is two digits.

The arithmetic is imprecise, of course. Real labels do not stack neatly, and the conditions are not independent. What it illustrates is structural: total duration is a denominator averaged over everything, and your target is a numerator. Quoting by duration is reasonable because capture and annotation costs do scale with it. Accepting by numerator is also reasonable because the model only learns from the numerator. Both positions hold, and the conflict lands on the billing unit rather than on the price.

There is a finer problem: the word segment is ambiguous. Twenty seconds is nuScenes' choice; another vendor might cut at thirty seconds, or at event boundaries. The same two hundred hours becomes thirty-six thousand samples at twenty seconds and twelve thousand at sixty. A threefold difference in sample count, with the duration unchanged. So when the quote lists only hours, you cannot even estimate how many samples you are buying.

Three layers — hours, segments, target scenarios — and each conversion rate might be a few percent. Multiply three small percentages and two hundred hours collapsing to a few dozen segments is the expected order of magnitude rather than a sign that the vendor lied. The real problem is that none of those three rates is written into the contract. The buyer believes they are buying layer three; the vendor delivers layer one; layers in between run on mutual assumption.

nuScenes fixed annotation at 2 Hz, and that is not a detail

The published description of nuScenes reads roughly like this: one thousand scenes of twenty seconds each, captured in Boston and Singapore; twenty-three classes and about 1.4 million 3D bounding boxes; six cameras, one lidar and five radars.[1] These numbers get quoted constantly. The one quoted most is the box count; the one quoted least is the annotation rate.

The annotation rate is the interesting part. The lidar sweeps at twenty hertz, but annotation happens on keyframes at two hertz.[1] So a twenty-second scene holds roughly four hundred sweeps, of which about forty carry labels. That is a factor of ten, not a rounding difference. Between two annotated frames a target can travel farther than the target's own size. For training a detector this is usually enough. For trajectory prediction or behaviour analysis you have to be careful, because those other three hundred and sixty frames are data you own but cannot supervise on.

This is not laziness. Per-frame 3D box annotation costs scale linearly with duration, and most perception tasks train fine on two-hertz labels. The paper states the choice plainly, and pairs it with something else: the train, validation and test splits are made over scenes, so frames from one scene never appear on both sides.[1] Annotation rate and split unit both belong to a dataset's specification rather than to its scale. Specification decides what it can do; scale only decides for how long.

The practical consequence: when a vendor says two hundred hours, your second question is where the labels sit and at what rate. If annotation runs at two hertz while sensors run at twenty, you are buying two hundred hours of raw stream plus twenty hours of annotation. Both numbers are true. Only one of them trains anything. The quote lists the first because it is the larger one.

Four things that have to line up

DimensionWhat to checkWhat goes wrong if it does not holdHow to pin it in delivery
Time synchronisationWhich instant each sensor's timestamp refers to: exposure start or readout end for cameras, sweep start or end for lidar; and how large the offset isAt speed, the same target does not line up between image and point cloud, and the fusion model learns a systematic misalignment rather than noiseRequire per-frame timestamps and a note on the sync method; measure the offset on a static target in both modalities
Calibration and versionsCamera intrinsics, extrinsics for each sensor, and the history of extrinsics changesAfter a mount change or a recalibration, data before and after live in different frames, and the model reads calibration error as target motionAttach a calibration version to every scene; list scenes where it changed so they can be dropped wholesale
Scenario label definitionWhether cut-in requires the target to complete a lane occupancy, how many frames count as established, whether a touch-and-return countsThe same label means different things across batches, the training target drifts quietly, and acceptance turns into two people asserting different readingsWrite the definition as a decidable clause and attach positive and negative examples
Long-tail countingCounted per scene or per target; three cut-ins in one scene count as one or as three"Coverage" in the quote is inflated by double counting: you think you bought two hundred, you own sixty scenesFix the denominator: count per scene and report sample counts for each condition combination

Only the first row is a purely technical problem. The other three are definition problems, and definition problems are harder to negotiate because they are not about being right, they are about whether anyone wrote it down. A delivery without calibration versions and label definitions leaves you with belief as your only instrument. With them, you can at least say which batch and which segment diverged instead of "something feels off".

The third row deserves a note. The same word can mean quite different things across teams: some count a neighbouring vehicle touching the line as a cut-in, some require the target's centre to cross, some require the ego vehicle to brake in response. Under those three definitions the same footage gets three different labels. That is not an annotation quality problem, it is an unwritten requirement. When a buyer types the word cut-in into a requirements document, they rarely notice how much interpretive room they just left.

A thirty-clip sampling check

The figures below are invented to illustrate the procedure and correspond to no real project. Suppose you receive two hundred hours, and the vendor claims urban coverage, night and rain included, with twenty-three object classes and six scenario event types. You draw thirty twenty-second scenes and do four things, which takes an afternoon.

  1. Align camera and point cloud using the vendor's timestamps, pick a static object — a lamp post, a road sign, a barrier column — and measure how far it lands apart in image and projected point cloud. If the gap exceeds one vehicle width, sync or extrinsics are broken and everything after this is wasted.
  2. Check the calibration version of each of the thirty scenes. If the metadata has no such field, record the item as failed rather than as unknown. In acceptance, unknown and failed behave the same; only one of them sounds better.
  3. Hand-check the cut-in labels against the vendor's own definition: did the target enter the ego lane from an adjacent lane and complete the occupancy. The invented result: five of twelve labelled segments do not hold, and three of those are vehicles that crossed the line and came back.
  4. Count how many of the thirty scenes hit your target condition of night plus rain plus cut-in. The invented result is zero. Do not conclude the batch is useless; use the rate to bound the numerator for the whole batch.

Step four is the one most often misread. Zero hits in thirty scenes does not mean the batch contains none; it means the hit rate is probably below some modest level. To reach a usable conclusion you work backwards from the target count: if you need two hundred night-rain cut-ins and the condition might be one or two percent of the batch, thirty clips tells you nothing and a thousand clips is expensive. The cheaper move is to ask the vendor for a targeted retrieval under that condition, hand you the hit list, and sample from that.

The first three steps and the fourth are different in kind. The first three ask whether things are labelled correctly; the fourth asks whether they are there at all. The first can be estimated from a sample. The second barely yields a conclusion from a small sample. Mixing them into one sampling pass is a common reason acceptance reports end without a conclusion.

{
  "scene_id": "scene-0001",
  "duration_s": 20,
  "location": "urban-night",
  "weather": "rain",
  "calib_version": "calib-2023-07",
  "sensors": {
    "camera_front": {"hz": 12, "annotated_hz": 2},
    "lidar_top": {"hz": 20, "annotated_hz": 2},
    "radar_front": {"hz": 13, "annotated": false}
  },
  "labels": {"objects": 41, "events": ["cut_in"]},
  "split_group": "train"
}

The two fields most often omitted from a manifest like this are calib_version and split_group. The first decides whether batches can be trained together. The second decides whether frames from one scene can end up on both sides of a split. Neither is a modelling question, and both make your training results unexplainable. The frequency values above are invented to show the shape of the fields; use whatever your delivery actually states.

What an hour count cannot prove

The limits of the source material need stating too. nuScenes is a general perception dataset: its class set, its two cities and its annotation rate were designed for detection, tracking and prediction benchmarks, not for your use case.[1] What you can take from it is the shape of a specification — timestamps, calibration, scene-level splits. What you cannot take is its twenty-three classes as your label set, or its split as your acceptance standard. Using someone's dataset as a template and using it as an answer are different acts.

A second limit: the long tail is defined by the downstream task. In the same cut-in segment, a detector cares about box continuity across dozens of frames, a predictor cares about lateral velocity in the two seconds before the cut, and a planner cares whether and how hard the ego vehicle must brake. Three tasks, three requirements on one segment, and one delivery rarely satisfies all three. Acceptance criteria therefore follow the task, not the data. Otherwise you judge planning data by detection standards and conclude the data is bad.

A third limit is less comfortable: even with enough scenarios, the model may not transfer to your vehicle. Sensor models, mounting positions, lens contamination and wiper occlusion are not in the dataset. Coverage is necessary, not sufficient. Treating it as necessary keeps you from overpaying for a handsome coverage number.

One thing you can do today: rewrite that line in the requirements document — cover night-rain cut-ins — as a decidable definition plus a count. "The target enters the ego lane from an adjacent lane and holds for at least one second, at night with visible reflections on the road surface; at least two hundred scenes, counted per scene." Take that sentence to the vendor and ask whether the number can be produced. If it can, you have a denominator. If it cannot, you are still buying hours, not scenarios.

References

  1. nuScenes: A multimodal dataset for autonomous driving

Read next

All articles

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…