﻿# nuScenes sample_data: a parent keyframe is not the sensor capture time

Join nuScenes sensor records by their timestamps, calibration and keyframe status rather than copying parent-sample boxes onto every intermediate observation.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-nuscenes-sample-data-parent-keyframe-not-capture-time-label/
Language: en

## Separate a database association from simultaneity

A nuScenes loader attaches the parent sample’s object boxes to every sensor record that references it. The join is valid relationally, yet moving objects can be misplaced in intermediate observations. A foreign key describes association within the dataset, not necessarily identical acquisition time. Preserve each sensor record’s timestamp and keyframe status before deciding which annotation geometry applies. This prevents a convenient database join from becoming an undocumented temporal labeling method in a detection or tracking experiment.

## Read the sample and sensor-record distinction

The [nuScenes tutorial](https://www.nuscenes.org/public/tutorials/nuscenes_tutorial.html) distinguishes annotated samples from data collected by individual sensors and from timestamped ego poses. Keep these records separate in a derived cache instead of reducing them to a single generic frame identifier. The camera or lidar observation has its own acquisition context, even when the dataset provides shortcuts for navigating related records. An array indexed only by the parent sample can discard precisely the timing information needed to diagnose a projected-box mismatch.

## Preserve the documented intermediate association

The [database schema](https://raw.githubusercontent.com/nutonomy/nuscenes-devkit/master/docs/schema_nuscenes.md) explains that intermediate sensor records point to the closest following sample, while keyframe records should be close in time to their sample. It also distinguishes sample-level annotations from sensor records. Therefore, a shared sample link is insufficient evidence of simultaneous observation. Use the sensor timestamp and appropriate pose relationship explicitly, particularly when constructing additional supervised examples between annotated keyframes or comparing observations from different sensor channels.

## Identify interpolation as derived supervision

The [devkit implementation](https://raw.githubusercontent.com/nutonomy/nuscenes-devkit/master/python-sdk/nuscenes/nuscenes.py) handles intermediate observations by estimating boxes through interpolation when the relevant conditions apply. That is a derived estimate, not a newly observed human annotation at every sensor timestamp. Preserve whether a target came directly from a keyframe or from this processing path. An interpolation assumption may be reasonable for a task while still requiring separate treatment around object appearance, disappearance or motion that is not represented well by the selected estimate.

## Audit a moving-object sequence

Inspect a short sequence containing a moving object and compare the sensor timestamp, parent sample and actual annotation path used by the loader. Retain these fields with generated targets so timing errors remain diagnosable after caching. [Audio timing and labels](/journal/data-guide-audio-resample-time-labels/) explains the broader clock issue; [software reproducibility](/journal/software-stack-reproducibility/) preserves devkit behavior. Report intermediate targets as derived when appropriate, making temporal supervision explicit rather than treating every relationally associated observation as an independently annotated keyframe.
