Building a Robot Perception Dataset: Detection, Segmentation, and Depth

Every robot policy begins with a claim about the world: what is where, what can be touched, and how it moves. That claim comes from the perception layer of your dataset. Yet perception is often treated as an afterthought — a bounding box drawn here, a depth map dropped there — and teams only discover the gaps when a policy fails on a real floor. Building a strong robot perception dataset means treating detection, segmentation, and depth as one connected labeling problem, not three separate annotation tasks bolted together after collection.

Object detection: boxes are only the start

Detection labels answer the simplest question — is the object present, and where? For a technical buyer, the temptation is to stop at a rectangular box. Boxes are cheap to draw and easy to train against, but they carry hidden ambiguity. A box around a mug says nothing about the handle, the rim, or the free space a gripper needs. That distinction decides whether a manipulation policy can approach the right affordance or collide with the wrong surface.

A production-grade detection layer should specify:

  • Class granularity that matches the task — a generic 'container' label is too coarse if the robot must distinguish a lid from a cup.
  • Occlusion state and truncation flags, so partially hidden objects are not silently treated as complete.
  • Stable instance IDs across frames, so a policy can track the same object through a sequence instead of re-identifying it every frame.

At EmboData, we treat instance identity as a first-class field because temporal coherence is where most downstream policies either learn or break.

Segmentation: pixel-level truth for contact-rich work

When a robot must grasp, wipe, insert, or pour, a bounding box is not enough. Segmentation labels give a pixel-accurate mask of the target, which is what lets a policy reason about contact boundaries. Two distinctions matter most.

Semantic versus instance masks

Semantic masks group all pixels of a class together; instance masks separate each object. Manipulation almost always needs instance-level separation — knowing that two identical bottles are distinct objects changes the plan entirely.

Panoptic consistency

The strongest datasets combine both: a panoptic view where every pixel carries both a class and an instance ID. This is especially valuable in cluttered scenes, where a policy must separate a target from the pile around it. Masks should be reviewed at their boundaries — a three-pixel error along an edge is irrelevant for classification but decisive for a suction cup.

Depth and geometry: the dimension flat labels miss

RGB alone leaves a robot guessing about distance. Depth labels — from stereo, time-of-flight, or structured light — anchor perception in metric space. For a usable dataset, three qualities matter more than raw resolution:

  1. Metric scale: depth must be calibrated to real units, not arbitrary disparity, or the policy learns the wrong physical relationships.
  2. Validity masks: reflective, transparent, and black surfaces defeat many depth sensors; mark invalid pixels explicitly rather than filling them with zero.
  3. Alignment: depth must be registered to the color frame with a known transform, so a mask and a depth value describe the same physical point.

Transparent objects — glassware, blister packs — deserve special attention because they tend to fail both segmentation and depth. Flagging them as a known hard category is more honest than quietly dropping them from the set.

Keeping the layers consistent over time

The hardest part of perception labeling is not any single frame; it is agreement across the stack and across time. A box, a mask, and a depth reading must refer to the same object with the same identity in every frame of a demonstration. When they drift, a policy learns contradictions. Practical safeguards include synchronized capture timestamps, a shared coordinate frame documented in the dataset card, and automated checks that a mask centroid falls inside its box while its depth values stay within a plausible range.

Getting perception right before you scale

Perception errors compound. A sloppy label repeated across a million frames is still a sloppy label, only more expensive. Teams that invest early in clean detection, segmentation, and depth labels — with clear conventions and cross-layer validation — spend far less time debugging policies later. Before you fix the annotation schema for a large collection, it is worth reviewing our notes on embodied data collection services. Perception is not a preprocessing step; it is the foundation the entire policy stands on.

← Previous articleShrinking Robot Policies for the Edge: A Data Preparation Playbook Next article →The Hardware Behind Embodied Data Collection: Cameras, Rigs, and Sync