From objects to interactions
P3D packages the appearance and context of an object. P4D (Perfit 4D) is a proposed episode format for recording how objects, people and robots move and interact over time. It links synchronized observations to an inspectable record of objects, poses, paths, relationships and events. A compatible P3D asset can provide a reference for an object without replacing its observations in the episode.
Ordinary video shows what the camera saw. For Physical AI, a useful episode also answers which object was picked up, where it moved, whether the camera moved, and which observations support those conclusions. P4D organizes these answers around a shared timeline, stable instance IDs and explicit coordinate frames.
Capture, synchronize and assemble
Time is part of the data model
Retain device timestamps and map each stream onto an episode clock. Record the offset, drift model or synchronization method and uncertainty where available. Pair stereo frames using a stated tolerance, preserve dropped-frame gaps, and retain IMU samples at their native rate. A reader should be able to tell whether a value was observed, interpolated or unavailable.
Calibration gives a pose physical meaning
Declare camera intrinsics, lens distortion, stereo extrinsics and the camera-to-IMU transform, with units and validity intervals. A pose sample names the parent and child frames and defines its rotation order or quaternion convention. Where the world frame is arbitrary, distinguish it from a surveyed or independently verified frame. The EuRoC dataset provides a published example of stereo and inertial streams with calibration, and documents limitations of its ground-truth synchronization. Source.
Separate camera motion from scene motion
Use visual and inertial observations to estimate the rig trajectory, preserving raw gyro and accelerometer data beside the estimate. Map object and limb observations into a common frame before comparing trajectories. Without reliable calibration or scale, flag positions as relative or uncertain. Inertial integration alone is not a substitute for a validated pose estimate.
An episode package with traceable layers
The manifest is the entry point for discovering streams, calibration, IDs and annotations. Media can be stored once, with lightweight track samples and event records linked by time. The paths below illustrate a possible organization; media codecs and the final container specification are open design choices.
episode.p4d ├── manifest.json version, timebase, IDs, media index ├── calibration/ camera models, extrinsics, clock maps ├── media/ left and right video, optional depth ├── sensors/ timestamped IMU and optional robot logs ├── entities/ object registry and optional P3D links ├── tracks/ camera poses, 3D boxes, limb/object paths ├── semantics/ relations, events and task annotations └── quality/ provenance, confidence and validity flags
| Layer | Key fields | How it is used |
|---|---|---|
| Episode manifest | Episode ID, schema version, timebase, stream handles, payload integrity | Resolve the recording and locate data by time and version. |
| Observations | Sensor timestamp, source frame index, media reference, calibration ID | Replay evidence and trace derived labels back to inputs. |
| Entities and tracks | Instance ID, class ID, pose/box, timestamps, visibility, confidence | Associate observations across time and distinguish multiple objects of a class. |
| Semantics | Entities, relation or action, time interval, source, confidence | Search or train on relationships and state changes. |
| Provenance and quality | Model/version, annotation source, review status, uncertainty, missing intervals | Distinguish inference, human review and independently measured ground truth. |
Generic P3D tagging
An entity can reference a generic P3D class asset or an exact instance asset. Store the link type explicitly: a generic cup reference supplies category context, while an instance reference ties to a specific captured cup. Neither is evidence that an observed object has the reference asset’s exact dimensions, material or pose. Keep class identity separate from the track ID assigned to a single occurrence.
Spatial semantics, orientation and trajectories
Object detection and 3D boxes
Store class and instance IDs, 2D observations when available, and a 3D box centre, extent and orientation in a declared frame. Keep confidence and visibility with each sample.
Pose and limb paths
Track joints or hands with a named keypoint topology, timestamps and confidence. Preserve occlusions and distinguish estimated positions from measured or reviewed labels.
Object paths and camera motion
Record object poses, rig poses and timestamps separately. A relative pose can support interaction analysis without claiming a globally accurate map.
Scene relationships
Express a relation as typed subject, predicate and object with a frame or interval: for example, cup on tray, hand near cup, cup inside bin. Tell readers how the relation was produced.
Use observations for per-frame detections, tracks for identity through time, and events for intervals such as approach, grasp, lift and release. A detection overlap need not prove contact. Contact inferred from proximity should remain an estimate unless reviewed or supported by a suitable sensor signal. Confidence and provenance belong on each layer so later models can filter or re-label the episode.
Interactive example: a cup pick-and-place
Scrub the illustrative sequence. The moving cup uses one track ID while the scene relationship changes. The rig indicator represents camera motion independently. These positions and times are demonstration values, not sensor measurements.
| Stage | Evidence to retain | Possible annotation |
|---|---|---|
| Approach | Stereo frames, hand and object keypoints | Hand moves toward Cup 07. |
| Grasp and lift | Object and hand poses; optional force or action logs | Cup leaves surface; possible grasp. |
| Move and release | Object and wrist paths, tray detection | Cup is placed in tray once the observed state supports it. |
Physical AI and model training
Perception
Export synchronized images with reviewed object IDs, classes and 3D boxes. Use validity masks to keep missing observations from becoming negative labels.
Tracking and motion prediction
Use pose and trajectory histories for tracking or short-horizon prediction. Keep the camera trajectory and timebase so camera motion is not mislabeled as object motion.
Robot demonstrations
Record actual robot state, actions and their time alignment when available. Human video and inferred hand paths can inform learning, but do not supply executable robot commands by themselves.
Action and relation learning
Pair frames or clips with relation labels, action intervals, optional instructions and outcomes. Retain where each label came from so weak labels can be filtered.
Build splits around episodes and physical objects
Split by recording session and, for generalization tests, hold out objects, environments or operators. Nearby frames and repeated versions of the same episode belong in the same split. Report dataset coverage and missing labels as well as model metrics. A future exporter could map P4D episodes to a training format such as LeRobotDataset; verify the handling of video, time alignment and action/state fields, and document any annotations the target cannot preserve. Source.
Delivery, compute and practical use
A reference object can be shared across episodes rather than duplicating its P3D binary for each track. A review copy can carry reduced video and selected overlays while the source recording preserves original media and calibration. Readers should flag unresolved references and identify what a derivative leaves out.
Storage depends primarily on duration, stream bitrates and included depth or raw data. For illustration, two 8 Mb/s video streams for 60 seconds total about 120 MB before audio, sensor samples, depth, metadata or overhead. This is a bitrate calculation; it is not a P4D benchmark. Stereo matching, visual-inertial pose, detection and annotation each have a compute cost. Evaluate them separately on a declared camera setup and machine.
Industrial and lab review
Replay assembly or inspection steps with timed labels for object state, handling and tool use.
Spatial content and simulation
Reuse camera paths and observed motion as references. Use a separate validated geometry and physics model where simulation requires them.
P3D, video and P4D serve different tasks
| Dimension | Ordinary video | P3D asset | Proposed P4D episode |
|---|---|---|---|
| Primary unit | Clip or stream | Product or object | Timed scene or task episode |
| Visual evidence | Ordered frames | Indexed views and media | Stereo video and optional depth linked to sensors |
| Identity | Usually external to the clip | Product ID, attributes, optional spatial data | Entity registry, stable tracks and optional generic or instance P3D tags |
| Motion and relationships | Visible but generally not structured | Viewpoint ordering primarily describes appearance | Camera, limb and object paths; typed relations and action intervals |
| Best fit | Playback and media | Catalog, interactive viewing and reusable appearance | Replay, analysis and model-ready export for time-dependent tasks |
A dynamic renderer or 4D reconstruction may produce novel viewpoints of a changing scene. P4D’s proposed focus is the record of observations, motion and meaning; it can reference a reconstruction but does not require one. Choose P3D for a reusable product record, P4D for the episode surrounding it, or both when an object’s reference asset and its interactions matter.
How to validate the format and pipeline
| Validation area | Measure or test | Report alongside |
|---|---|---|
| Synchronization | Stereo pair offset, camera-to-IMU offset/drift, missing samples | Clock sources, timestamp convention and tolerances. |
| Spatial accuracy | Depth error, pose and trajectory error, 3D box overlap | Calibration, range, occlusion and reference method. |
| Tracking consistency | Identity switches, gaps and HOTA when applicable | Annotation coverage and per-class or per-condition breakdowns. |
| Event quality | Per-event precision/recall and boundary timing error | Label definitions, annotator agreement and inferred vs verified events. |
| Runtime and interoperability | Bytes per minute, processing time per stage, peak memory and round-trip checks | Hardware, codec, sensor rates, export omissions and configuration. |
Start with a controlled pick-and-place recording and independently timed or measured references where feasible. Check that replay, export and re-import preserve timestamps, IDs and units. Compare a video-only baseline against the same task with synchronized sensor data and reviewed labels, holding splits and evaluation criteria fixed. HOTA is an example of a metric that evaluates detection and association jointly; choose the metric appropriate to the track representation. Source.
Capture evidence once and reuse the episode
P4D extends the P3D object record into a record of interaction: what was seen, what moved, where it moved and how entities were related through time. Its value depends on keeping sensor evidence, estimates and reviewed labels distinct while making them easy to join and replay. A validated pilot and a versioned interchange specification are the next steps toward a production format.
References and scope
This paper is based on the project’s earlier P4D technical requirements. The supplied Google Doc remains access restricted and has not been used as a source. The primary references below support the related technical methods; they do not validate a P4D implementation.
Stereo and inertial recording, calibration, ground truth and documented synchronization limitations.
Reference for organizing robot episodes with video, tabular data and metadata.
Tracking evaluation across detection, association and localization.