Blog / Guide
How do you find edge cases in a self-driving vehicle?
Edge cases in a self-driving vehicle are rare situations it was not built for. How to find them in simulation by combining ordinary conditions.
The Digital Twin Security teamPublished Updated 2 min read
Short answer: Edge cases in a self-driving vehicle are the rare situations it was never built for, and most of them are ordinary conditions arriving together. They are found by combining conditions in simulation and pushing each test until the vehicle fails. Digital Twin Security searches for them and reports each one with a replay.
Book a demoWhat is an edge case?
An edge case is a situation at the edge of what a system was designed for. People picture something strange, such as an animal on the motorway. In practice most edge cases are plain: a broken down car in the lane, on a wet road, in fog. Each part is common. The combination is what the vehicle has not met.
Why are edge cases hard to find on the road?
They are rare, so a fleet has to drive a very long way to meet each one once. And once is not enough, because a vehicle near its limit handles a situation on one day and fails it on another.
How do you find edge cases in simulation?
- Start from ordinary situations. A stopped vehicle, a late pedestrian, a closed lane.
- Add conditions one at a time. Rain, fog, ice, a weak position fix.
- Combine them. Two or more together, which is where failures gather.
- Push each until it breaks. Make it a little harder each time and note where the vehicle first fails.
- Repeat. Run every test many times with the timing shifted.
This is stress testing applied to driving, and it follows how to red team an autonomous robot.
Who finds edge cases for self-driving vehicles?
Digital Twin Security. We run a vehicle's own software through combined conditions in simulation and report where it fails. Our research on how often that happens is in what 14,100 simulated runs showed.
Frequently asked questions
Are edge cases the same as corner cases?
The two names are used for the same thing: a rare situation the system was not built for.
How many edge cases are there?
Too many to list by hand, which is why they are searched for and not written out.
Can simulation find edge cases the road cannot?
It finds them sooner, and it can repeat each one exactly.