Digital Twin Security

Blog / Guide

Fault injection testing for robots: what is it, and what should a robot do with each fault?

Fault injection testing for robots switches a sensor, a link or a position source off or wrong on purpose during a run, to see what the robot does next.

The Digital Twin Security teamPublished Updated 3 min read

GUIDEFault injectionfor robotsDIGITAL TWIN SECURITY

Short answer: Fault injection testing for robots means switching a sensor, a command link or a position source off, or making it wrong, on purpose during a run, and recording what the robot does next. A safe robot notices the fault and slows down or stops. Digital Twin Security injects each fault in simulation on the robot's own control software, alone and then combined with weather or a person on the path, many times each.

Book a demo

What is fault injection testing for robots?

Fault injection testing breaks one thing on purpose, at a chosen moment, and watches what the robot does. The fault is fed to the robot's own control software during a run, so the test is about the decision that follows and not about the part that failed.

Simulation is the natural place for it. The same fault can be injected at the same moment again and again, with no machine and no person at risk.

Which faults should be injected?

Each source the robot relies on can be switched off or made wrong.

What is switchedOffWrong
A scannerIt reports nothingIt sees a shorter distance, as in thick fog
A satellite positionThe fix is lost, as between tall buildingsIt freezes on an old spot, or drifts slowly from the true one
A command linkMessages stop arrivingA command arrives with no valid signature

The wrong value is the harder test, because it looks healthy to the robot.

What should a robot do with an injected fault?

It should notice, and then slow down or stop in a way that fits the place. A delivery robot whose scanner goes silent should not keep its speed on the strength of the path it saw a moment ago. A drone that loses its link should follow a rule chosen in advance, and what a robot should do when it loses its command link shows where each rule is the wrong one.

The result to worry about is no change at all, since a robot that drives on exactly as before did not notice. The safe responses are set out in sensor failure in robots.

How do you run a fault injection test?

  1. Inject one fault alone. One source, one kind of fault, and a record of what the robot did and where it ended up.
  2. Move the moment. A fault on an empty stretch tells little, and the same fault as a person steps onto the path is the test that counts.
  3. Change the length. A robot can coast through five seconds of silence and may not get through sixty.
  4. Add weather, a person or a second fault. Fog shortens what the working sensors see, and a lost link is harder to handle once the satellite position is gone as well.
  5. Run each one many times. Shift the timing a little on every run, and read the share of runs that failed.

Who does fault injection testing for robots?

Digital Twin Security. A silent scanner, a frozen position, a lost satellite fix and a lost command link are built in kinds of test, and each can be combined with weather or with a person on the path. The robot's own control software makes the decisions, connected through our Python SDK or ArduPilot. Every failure comes back graded by severity with the run to replay.

Frequently asked questions

What is fault injection testing for robots?

Fault injection testing for robots switches a sensor, a command link or a position source off or wrong on purpose during a run. It shows whether the robot notices the fault and what it does next.

Is fault injection testing safe to do on a real robot?

Some faults can be staged on a real machine with care. In simulation every fault can be injected at the worst moment, as often as needed, with no machine or person at risk.

How many times should each fault be injected?

Many times, with the moment and the timing shifted a little on every run. A robot can pass a fault on an empty stretch and fail the same fault beside a person.

Who runs fault injection tests on robots?

Digital Twin Security. We inject each fault in simulation on a robot's own control software, alone and combined with other conditions, and report every failure with a replay.