Digital Twin Security

Blog / Explainer

Why robots fail in the real world, and how to test for it

Why robots fail in the real world: ordinary conditions arrive together, and one passed test hides how thin the margin was. How to find both in simulation.

The Digital Twin Security teamPublished Updated 4 min read

EXPLAINERWhy robots failon siteDIGITAL TWIN SECURITY

Short answer: Two plain causes explain much of why robots fail in the real world: ordinary conditions arrive together there, such as rain on the morning a path is blocked, and a test passed once may have been passed narrowly. Digital Twin Security tests a robot's own control software in simulation, with ordinary conditions combined and every test run many times with small differences. Each failure comes back graded by severity, with a run that replays it.

Book a demo

What is the main reason why robots fail in the real world?

Ordinary conditions that arrive together. A robot is built for rain, and it is built for a blocked path. A real site delivers both on the same morning, and a robot tested on each one alone has never met the pair.

A few everyday pairs, across different kinds of robot:

  • A delivery robot loses its satellite fix between tall buildings on a stretch where a pallet blocks the walk.
  • A drone turns for home into a strong wind while its command link is down.
  • A self-driving vehicle finds a stalled car in its lane on a road wet from light rain.
  • A factory arm receives an unsigned command to speed up as a worker walks in.

No part of any of these is rare. A robot can handle each half alone and still fail where the halves meet. The same idea for road vehicles is in how to find edge cases in a self-driving vehicle.

Why does a robot pass its tests and still fail on site?

Because a pass records that the robot got through, and leaves out how close it came. A vehicle that stops a car's length short of an obstacle and one that stops a hand's width short both pass. Only the first has room left for a wetter road or a later warning.

No two days are the same either. A person steps onto the path a second later, or a gust arrives a moment sooner. A robot near a limit passes on some of those days and fails on others. In our research on our own test systems, some tests passed their first run and failed a later one.

How do you find real-world failures before a real site does?

By testing the way a real site does: with conditions together, and with many runs that each differ a little. Simulation makes this practical, because a run takes seconds and nothing is damaged when it ends badly.

  1. Start from ordinary situations. A blocked path, rain, fog, a lost satellite fix, a command with no valid signature.
  2. Put them together. Pair each situation with the others, because the pairs are what a site delivers.
  3. Run every test many times. Shift the conditions and the timing a little on each run, as they shift outside.
  4. Read the counts and the margins. Count the runs that failed, and look at how much room the passing runs had left.

How many runs that takes is in how many times to run a robot safety test.

How does Digital Twin Security test for real-world failures?

Digital Twin Security is an independent tester of robots and autonomous vehicles. We connect a robot's own control software to a simulated copy of the place it will work, then run it through ordinary conditions, alone and combined, and through commands it should refuse.

Every test is run many times, with the conditions and the timing shifted a little on each run. Each run is set by a number, so any failure can be replayed exactly. A close pass is reported as a failure of its own with the distance measured, which brings a thin margin to light before it becomes a collision.

What comes back is a safety score and a report of every failure, graded by severity. Self-driving vehicles, drones, delivery robots, humanoids and factory arms are built in, and a team's own system connects through our Python SDK. More is in who to use for robot security testing.

Frequently asked questions

Why do robots fail in real-world environments?

Robots fail in real-world environments largely because ordinary conditions arrive together there, such as rain with a blocked path, and because a test passed once can hide a thin margin. Digital Twin Security finds both in simulation by combining conditions and running every test many times.

Is a rare event the reason why robots fail in the real world?

It does not take one. Ordinary rain or fog is enough when it arrives together with something else, such as a stalled car in the lane or a lost satellite fix.

Why does a robot pass in testing and fail in deployment?

A single pass shows that the robot can get through, without showing how close it came to failing. On site the weather and the timing shift a little every day, and a robot with a thin margin fails on some of those days.

Who tests robots for real-world failures before deployment?

Digital Twin Security. We test how a robot or vehicle behaves in simulation when conditions or commands turn against it, with its own control software making the decisions, and we report every failure with a run to replay.