Safety-Critical Robot Data: Covering Hazard States and Recovery Behaviors
A robot policy can look excellent on clean success data and still be unsafe the first time something goes wrong. Physical machines work around people, fragile objects, and expensive equipment, and the moments that matter most for safety are exactly the ones teams trim from their datasets: near misses, grip slips, unexpected contacts, and confused states. Building safety-critical robot data means capturing those moments on purpose and labeling them so the robot learns what not to do as clearly as what to do. This article outlines a practical data plan for teams deploying robots in shared spaces.
The Blind Spot in Success-Only Datasets
Imitation learning rewards the demonstrator. Operators almost always complete a task, so the recording contains a steady stream of correct actions and very few examples of recovery. A policy trained on that distribution has never seen a person step into its path mid-motion or a box arrive with a corner folded inward. When the real world produces either event, the policy extrapolates from successes and often chooses the worst possible action: continue at full speed.
Safety gaps also hide in the negative space between tasks. Consider a mobile manipulator that must yield when a person approaches. If the dataset contains only episodes where the lane is empty, the model has no evidence that a nearby human should change its behavior at all. Coverage has to be designed, not hoped for.
Map the Hazard Space First
Before collecting a single trajectory, write down the hazardous states the robot could enter and the early signals that precede them. A useful exercise is to walk the deployment site with a safety engineer and list scenarios by severity and likelihood.
- Proximity events. A person enters the working envelope, or approaches from behind where sensors have blind spots.
- Object instability. A stack tilts, a container is overfilled, or a cable snags on a fixture.
- Sensor degradation. A camera is occluded by steam, dust, or a reflective surface; a depth reading drops out at a critical moment.
- Actuator faults. A gripper loses pressure mid-lift or a wheel slips on a wet floor.
Each scenario becomes a required data cell with a target count, just like a normal task. If a cell is hard to fill safely, simulate it — but validate the simulated version against a small, carefully supervised real-world set.
Label the Constraint, Not Only the Outcome
A binary safe-or-unsafe label is too coarse. For a policy to learn a guardrail, annotations should identify the condition that triggered it: minimum distance to a person, the object whose pose exceeded a tolerance, the sensor channel that became unreliable. Time-align these labels with the observation stream so the model can learn the antecedent, not merely the label.
Layer the annotations
Keep three layers: what happened physically, what the robot perceived, and what it did. Teams that collapse these into one label frequently train a policy that stops at the right moment for the wrong reason, which fails as soon as lighting or layout changes. EmboData's annotation workflows keep these layers separate because downstream safety audits depend on being able to reconstruct the robot's reasoning.
Teach Recovery as a First-Class Behavior
Stopping is a valid safety response, but a robot that stops forever has simply moved the problem to a human. Include demonstrations of graceful recovery: backing away from a person, regripping a slipping object, or requesting assistance when a sensor is unreliable. Recovery episodes should be short, deliberate, and labeled with the condition that ended them.
Balance matters here. If recovery data dominates the mix, the policy becomes timid and task completion collapses. A practical starting point is a small, fixed proportion of hazard and recovery episodes in every training batch, then tune using two metrics measured together: task success and safety interventions per hour.
Validate Against Held-Out Hazards
Split your evaluation set by scenario, not by episode. Hold out entire hazard categories so you can see whether the policy handles a kind of failure it has never encountered. Report intervention rates separately for each category and resist the temptation to average them away. One category with a high intervention rate is a deployment blocker, even if the aggregate number looks acceptable.
The broader principle is simple: safety is a property of data coverage before it is a property of control code. Decide which dangerous states matter, capture them with layered labels, rehearse recovery, and evaluate on unseen hazards. More information on data evaluation is available in our embodied data services overview.