EverCheck EverTest EverView Workflow Training Guide Pricing Download Free Trial ✉ support@everbits.com

Driving School
for Robots

Ev­ery­one who drives has passed three exams — eyes, knowl­edge, driv­ing. That is not tra­di­tion, it is a safety ar­chi­tec­ture. A self-driv­ing car should get its li­cence the same way, sta­tion by sta­tion, with no short­cuts be­cause it is a com­puter.

Lis­ten · read by the au­thor0:00 / 14:20

14 min lis­ten · 12 min read · Read in­stead ↓

Eye test · The­ory test · Driv­ing test

MATLAB & Simulink Partner

Ev­ery­one who drives a car has passed three exams. An eye test at the doc­tor. A writ­ten test on a screen. A drive through town with a stranger in the back seat. We did it at eigh­teen, and we never asked why it is three and not one.

I think the an­swer to that ques­tion is also the an­swer to a much harder one: how do we know a self-driv­ing car is safe? My pro­posal is sim­ple. Treat the robot ex­actly like a human pupil. Same school, same doc­tor, same exams, same li­cence, same con­se­quences. No short­cuts be­cause it is a com­puter.

I will walk through it sta­tion by sta­tion. If you have a li­cence, you al­ready know the plot.

Three questions, three kinds of evidence #

An eye test checks whether you can see. The the­ory test checks whether you know what to do. The prac­ti­cal checks whether you ac­tu­ally do it, in traf­fic, under pres­sure. Three dif­fer­ent ques­tions, three dif­fer­ent kinds of ev­i­dence. A per­fect score on one can­not hide a fail­ure on an­other.

En­gi­neers who build safety-crit­i­cal sys­tems recog­nise this im­me­di­ately. It is the old­est rule in the trade: split a sys­tem into parts you can check sep­a­rately, and make sure the per­son check­ing is not the per­son who built it. The driv­ing li­cence ap­plied that rule decades be­fore any­one wrote it into a stan­dard.

Three exams, three parts of the car: see, decide, drive

Fig­ure 1 · Three exams, three parts of the car: see­ing, de­cid­ing, driv­ing

The school #

The robot en­rols at a driv­ing school. Not a test track. A school with a cer­ti­fied teacher — some­one who holds a li­cence to teach and keeps it through fur­ther train­ing — and a car with a sec­ond brake pedal.

The teacher does not show the robot a mil­lion hours of video. The teacher shows the few hun­dred sit­u­a­tions that mat­ter and ex­plains each one: the child be­hind the parked van, the lorry’s blind spot, the wet leaves in the bend. Four­teen evenings of the­ory — twelve on the rules for ev­ery­one, two on the car it­self — in­clud­ing a chap­ter ded­i­cated to spot­ting dan­ger early. Then lessons be­hind the wheel: first the quiet in­dus­trial es­tate, then town, then the drives the law in­sists on be­fore any­one may take the exam — coun­try road, mo­tor­way, night.

That list is worth a sec­ond look. The reg­u­la­tor does not say “prac­tise a lot”. It says which kinds of road must be cov­ered be­fore test­ing. For a robot, this is the train­ing plan: a cur­ricu­lum or­gan­ised by sit­u­a­tion and by op­er­at­ing con­di­tions, with cov­er­age tracked, not a pile of ran­dom kilo­me­tres.

And every time the teacher’s foot hits the sec­ond brake, that is the les­son. It is recorded, ex­plained, added to the file. The pupil never learns from a crash, be­cause the teacher does not allow one. For a robot, the “teacher” is the safety driver to­gether with the en­gi­neer who turns each in­ter­ven­tion into a doc­u­mented case and, where needed, a changed re­quire­ment.

Driving lessons: the teacher brakes, each situation is ticked off in the catalogue, until the pupil is ready for the exam

Fig­ure 2 · A les­son car with dual con­trols: three sit­u­a­tions, three in­ter­ven­tions, three cat­a­logue en­tries

For the pro­fes­sion­als

The school cer­ti­fies that train­ing is com­plete; the exam is run by a sep­a­rate or­gan­i­sa­tion. The teacher can­not pass their own pupil. For a robot: readi­ness for the exam is a dec­la­ra­tion by the de­vel­oper, the exam it­self is run by some­one who did not do the train­ing. One hon­est line on where the anal­ogy strains — a human pupil gen­er­alises from a few hun­dred sit­u­a­tions; a model may not. That is ex­actly why the the­ory exam for the robot should be far larger than thirty ques­tions, as the next sta­tions show.

Can it see? #

Be­fore the first les­son, the pupil goes to the doc­tor.

The doc­tor never asks “how well do you think you see?” The doc­tor puts you in front of the chart and mea­sures. The re­sult goes on your li­cence as a re­stric­tion. Mine says I need glasses. Some peo­ple may not drive at night.

The part of a self-driv­ing car that sees — cam­eras, radar, lidar, and the soft­ware that turns them into “there is a pedes­trian at 40 me­tres” — is learned from data. It is good, but it is never cer­tain, and it has no re­li­able way to tell you when it is wrong. That is the sin­gle most un­com­fort­able fact about au­to­mated driv­ing, and the eye test is the an­swer to it.

Do not ask the robot how con­fi­dent it feels. Mea­sure it from out­side. Put it in front of the chart: pedes­trian in the rain, cy­clist at dusk, child half-hid­den, traf­fic light against low sun. Two things count. Does it see what a driver must see? And does it hon­estly re­port what it can­not see? A blind spot de­clared as blind is fine — a human driver copes with blind spots all day. A blind spot re­ported as clear road is the fail­ure.

The medical exam: the sensor report drawn as the driver sees it, a missed pedestrian in red, and the certificate with its restrictions

Fig­ure 3 · The driver’s view drawn from what the sen­sor re­ports — hatched is un­known, red is missed — and the cer­tifi­cate it earns

The re­sult is a re­stric­tion writ­ten on the cer­tifi­cate: no night driv­ing, no op­er­a­tion in heavy rain, 60 km/h max­i­mum when vis­i­bil­ity drops. The robot does not ne­go­ti­ate this on the road. It car­ries it like glasses.

If you want to see what that screen looks like for real, there is a live demo that runs in your browser: it draws the driver’s view from the sen­sor re­port alone, with hid­den areas hatched and er­rors in red.

For the pro­fes­sion­als

This moves the hard­est prob­lem — know­ing the lim­its of a learned per­cep­tion sys­tem — out of the ve­hi­cle and into a test, where lim­its can be mea­sured against ground truth and writ­ten down as pre­con­di­tions for the de­ci­sion stage. The exam is done on the in­ter­face be­tween see­ing and de­cid­ing, so it is the same for cam­era, radar, lidar or a fu­sion. The stan­dard for this kind of haz­ard, ISO 21448, calls it safety of the in­tended func­tion­al­ity; the eye test is what it looks like when done the way we al­ready do it for peo­ple.

Does it know what to do? #

The the­ory test is where the robot has a real ad­van­tage, and it is also where my own field, model-based de­sign, does the work.

De­cid­ing what to do in traf­fic does not have to be learned from data. It can be writ­ten down as rules — and in a well-de­signed car, it is. Every sit­u­a­tion a driver meets be­longs to a class: join­ing the mo­tor­way, chang­ing lane, tak­ing a bend, turn­ing left across traf­fic, pass­ing a bus stop, ap­proach­ing a cross­ing. For each class there is a known han­dling se­quence: watch early, po­si­tion the car, ad­just speed, sig­nal, ex­e­cute. And every mis­take has a known weight, by how dan­ger­ous it is. A late in­di­ca­tor is a minor fault. Ig­nor­ing a stop sign ends the exam.

Then there is the rule that makes the whole thing pos­si­ble. If you do not un­der­stand what is in front of you, slow down, keep your dis­tance, stop. Every driv­ing teacher says it. It is the rea­son the cat­a­logue of sit­u­a­tions does not have to be in­fi­nite: ev­ery­thing is ei­ther a sit­u­a­tion you recog­nise and han­dle, or one you do not — and for that, there is one safe an­swer.

The theory exam: one manoeuvre as a chart; when the situation is unclear the chart drops into the fallback and the car stops

Fig­ure 4 · One ma­noeu­vre as a chart. When the sit­u­a­tion be­comes un­clear, the chart drops into the fall­back and the car stops

Rules like these can be built as a vis­i­ble logic model, tested against every sit­u­a­tion in the cat­a­logue, and checked for com­plete­ness: did every rule get ex­er­cised, every branch, every fall­back? A human gets thirty ques­tions. There is no rea­son to stop at thirty for a robot. Give it the whole cat­a­logue, with hid­den areas shown as hid­den, and grade every an­swer by its weight.

A theory exam with a million questions: every state, transition and fallback turns green, coverage reaches one hundred percent

Fig­ure 5 · A the­ory exam with a mil­lion ques­tions, and a cov­er­age mea­sure that says when noth­ing is left untested

For the pro­fes­sion­als

This is the part of the car that falls under or­di­nary func­tional-safety dis­ci­pline, ISO 26262: de­ter­min­is­tic, re­view­able, testable to cov­er­age — and it should stay that way. The de­ci­sion logic reads only the per­cep­tion re­port, never the raw sen­sors, so its test cases are ab­stract scenes, cheap to gen­er­ate by the mil­lion and graded by sever­ity class ex­actly as a human ex­am­iner grades er­rors.

Does it do it? #

Real traf­fic. Ex­am­iner in the back. The same scor­ing sheet any eigh­teen-year-old gets: traf­fic ob­ser­va­tion, po­si­tion­ing, speed, sig­nalling, ve­hi­cle con­trol, and driv­ing with the en­vi­ron­ment in mind. Im­me­di­ate fail for ig­nor­ing a manda­tory sign, or for not watch­ing the traf­fic at all.

This exam only works be­cause the first two were passed sep­a­rately. If the robot drives well on the day, you know it is not luck: it can see (mea­sured), it knows what to do (tested to cov­er­age), and now it has shown both to­gether.

Never for life #

No one gets a li­cence for life on the day of the exam. They get two years of pro­ba­tion with tighter rules. One se­ri­ous vi­o­la­tion: back to the sem­i­nar, pro­ba­tion dou­bled.

And from the first day, every vi­o­la­tion is counted and weighted in a reg­is­ter. Enough points — eight, in Ger­many — and the li­cence is with­drawn: not after a crash, be­fore one. For a robot, this is the pub­lic, con­tin­u­ous mea­sure­ment of how it ac­tu­ally be­haves in traf­fic, keyed to the same cat­a­logue of rules it was ex­am­ined on.

One more sta­tion that ev­ery­one for­gets. When the robot is im­proved — re­trained, up­dated — it is a new pupil. Back to the doc­tor, back to the the­ory test, back into the car with the ex­am­iner. No­body gets to argue “but it is the same robot”.

After the licence: probation, points, withdrawal, retraining, and back to the first exam

Fig­ure 6 · Li­cence, pro­ba­tion, points, with­drawal, re­train­ing — and back to exam one

What the industry has to accept #

All of this rests on a sin­gle con­di­tion: there must be a vis­i­ble line be­tween the part that sees and the part that de­cides. The eye test is done on that line. The the­ory test is done on that line. A car built as one big learned sys­tem, from cam­era pix­els straight to the steer­ing wheel, has nowhere to put ei­ther exam. It can only take the prac­ti­cal — and the prac­ti­cal alone is ex­actly the ev­i­dence we never ac­cepted from a human.

Noth­ing in this ar­ti­cle is new. Every reader has lived it. The only thing au­to­mated driv­ing has to ac­cept is that it does not get to skip sta­tions.

Which of the three exams could your sys­tem take today? See­ing · De­cid­ing · Driv­ing

Frequently asked questions

Why not test the whole car and be done with it?

Be­cause a pass on the road does not tell you why it passed. A human li­cence never re­lied on the prac­ti­cal alone ei­ther: eyes and knowl­edge are tested first, sep­a­rately, so a good day in traf­fic is ev­i­dence of abil­ity, not luck. The same split lets a robot’s fail­ures be lo­cated — in see­ing, in de­cid­ing, or in the ve­hi­cle — in­stead of guessed at.

Can safe driving really be written down?

The driv­ing schools and ex­am­in­ers al­ready did it. Driv­ing is a fi­nite set of sit­u­a­tion classes, each with a known han­dling se­quence and a known weight for every mis­take, plus one rule for ev­ery­thing else: if you do not un­der­stand the sit­u­a­tion, slow down, keep dis­tance, stop. That last rule is what makes the list fi­nite.

What happens when the robot is updated?

It is a new pupil. A re­trained per­cep­tion goes back to the med­i­cal, a changed de­ci­sion logic back to the the­ory test, and the ve­hi­cle back to the ex­am­iner. The li­cence be­longs to the ver­sion that was ex­am­ined, not to the badge on the car.

Which exam could your system take today?

Tell me on LinkedIn — or try the med­i­cal exam for per­cep­tion in your browser.

Discuss on LinkedIn Try the perception demo

Writ­ten by Ev­geni Ver­bit­ski, func­tional safety trainer and founder of EverBits · sup­port@ever­bits.com

0:00 / 14:20