Perception Exam Demo

Drive on what the sensor knows. Hatched means unknown.

0 objects0 hidden0 unknown areas 0 lights0 signs0 frame

How to read the screen
Bird view, left
From above and behind. The ego stays at the bottom, heading up.
Ego view, right
Camera behind and above the ego, looking ahead.
Solid box
The ego vehicle.
Outlined boxes and columns
Vehicles and pedestrians the sensor sees now.
Hatched areas
Unknown: hidden behind an object, or beyond sensor range.
Lines and zebra crossings
Lane markings as the map gives them. Bars across the road are a crossing.
Bright stop line
Its traffic light is red. A filled lamp is red, a ring is green.
Traffic signs
The shape tells the kind: circle for rules, triangle for warnings, octagon for stop. From behind: shape only.
Vehicle lamps
Bright rear edge: brake lights. Blinking corners: indicators or hazard lights. Roof light: blue lights.
Rings
A siren or horn is heard: around the source, or on the edge of the view if it is hidden.
Arrows and words on the road
Turn arrows, BUS for bus lanes and stops, P for parking, a bicycle for bike lanes.
Conditions
Day or night, weather, road surface. Fog, rain and night shorten the range.
Red dashed outline
A perception error: the object is there, but the frame misses it or reports it in the wrong place (red line to the reported place).
Red filled box
A perception error: the frame reports an object that is not there.
Dashed outline
With "Show hidden ground truth" only: in the world, but not in the frame.
Edit a scenario

Under Options, “Download this scenario” saves the scene on screen as a .json file. Change it in any text editor, then load it with “Open scenario file…” or drop it on the screen. The file is checked when it loads; if something is wrong, the page says what and keeps the previous scene. The same file runs in the Python prototype.

Units: metres in the world frame, angles in radians (0 points along x, counter-clockwise), speeds in m/s, time in seconds, one step is 1/30 s.

The file
scenarioId, source, licenceName, where the data comes from, and its licence. Recorded data sets that are not allowed are refused when the file loads.
timeStep, stepCountAlways 1/30 s. stepCount is the number of steps, including step 0.
egoStartStart of the ego: x, y, yaw, speed. Without an egoTrajectory the ego drives straight on at this speed.
egoTrajectoryOptional path of the ego: one row per step, [x, y, yaw, speed].
obstaclesRoad users and buildings, see below.
laneletsLanes, see below.
crosswalksZebra crossings: crosswalkId, start and end of the centre line, width.
trafficLightslightId, position, direction, cycle as a list of [state, seconds] (red, redYellow, green, yellow), repeated from timeOffset, and active.
signsTraffic signs, see below.
environmenttimeOfDay (day, night), weather (clear, rain, heavyRain, fog, snow), roadSurface (dry, wet, snow, ice, dirty, damaged), visibility in m. The sensor sees no further than the visibility, and at most 50 m at night.
perceptionFaultsErrors injected into the delivered frame and drawn in red, see below. An empty list gives a perfect perception.
notes, metaText shown under “About this scenario”; author, date, and loop: true for a scene that repeats without a cut.
Each obstacle
obstacleIdUnique number.
obstacleClassvehicle, truck, bus, motorcycle, bicycle, pedestrian, emergency, building, pillar, construction, animal, ball. Objects lower than 0.8 m (a ball, a cat) cast no shadow: the sensor looks over them.
shapekind box (length, width), circle (radius) or polygon (points around the centre).
heightIn m. Signs are hidden only by objects 1.9 m or taller.
firstStep, trajectoryThe step the object appears, then one row per step: [x, y, yaw, speed]. A single row is an object that stands still the whole time.
signalsTime spans {kind, from, to} in s. Kinds: brakeLights, indicatorLeft, indicatorRight, hazardLights, blueLights, siren, horn. Brake lights come from the speed profile when none are given.
Each lanelet
laneletId, leftBound, rightBoundNumber and the two edges as point lists, in driving direction.
predecessors, successors, adjacentLeft, adjacentRightLane connections. Successors at a junction give the turn arrows.
leftMarking, rightMarkingdashed, solid, double, none, unknown.
laneTyperoad, busLane, busStop, bicycleLane, sidewalk, parking, restricted, shoulder.
turnDirectionsPainted arrows, for example ["straight", "right"].
stopLine, lightIdsStop line as two points and the lights that control it.
Each sign
signId, position, facing, heightWhere the sign stands and the direction its face points (rad). It can be read only within 80° of facing the sensor.
countryDEU, AUT, CHE, USA, FRA, ARG, ZAM. Decides the codes and km/h or mph.
elementsMain sign first, then extra plates: {code, value}. Codes as in each country’s rules, for example 274 (DE speed limit), R2-1 (US), B14 (FR). Speed values in m/s: 13.89 is 50 km/h.
Each perception fault
missobjectId: the object and its shadow are left out of the frame.
phantomobjectId (a new number), objectClass, shape, height, x, y, yaw in the world: an object is reported that is not there.
offsetobjectId, dx, dy in m, ego frame (x forward, y left): the object is reported in the wrong place.
lateobjectId, range in m: the object is reported only once it is closer than the range.
all faultskind and the time span from, to in s.

Example: the city loop misses pedestrian 2116 from 5 to 7 s.

{ "kind": "miss", "objectId": 2116, "from": 5.0, "to": 7.0 }
Perception errors in red

Green is what the perception layer delivers. Red is where it is wrong. Each frame is compared with a reference perception computed from the full truth of the scenario; the comparison looks only at the two frames, so it works the same for any perception stack.

Missing: a visible object is not in the frame. Drawn as a red dashed outline where it really is. Too much: the frame reports an object that does not exist. Drawn filled in red. Wrong place: the object is reported more than 1 m away from where it is, or as the wrong kind. Red dashed outline at the true place and a red line to the reported one.

In the city loop three errors are injected on purpose: a pedestrian is missed from 5 to 7 s, a phantom car appears from 10 to 11 s, and a cyclist is reported 1.6 m off from 15 to 17 s. In the training scenarios, the dark pedestrian at night is reported only within 15 m and the grey cat only within 12 m (late detection). The recorded CommonRoad scenarios have no injected errors, so they stay green.

About this scenario
The perception frame t = 0.00 s

The whole interface between perception and everything after it: a decision stack, a human, or an examiner. Metres in the ego frame (x forward, y left). Long polygons are shortened here.


      
Why a medical exam for perception

There are two very different kinds of AI in an automated car. Statistical AI does the perception: it detects and classifies objects. It is trained, probabilistic and never certain. Logical AI decides how the car behaves on what was perceived: deterministic rules that can be specified, programmed and developed under ISO 26262.

The two should be separated and qualified separately, the way a human driver is. The logic takes the driving test: it is examined against the rules of the road. The perception goes through the medical exam: does it see what a driver needs to see, and does it say clearly what it cannot see? Detection and classification may even come from different models.

The key is a standard interface between them. This page shows one: the perception frame. With a fixed interface, each part gets its own examination rules, and an authority can decide which software may run under which conditions: Level 2, 3, 4 or 5. When something goes wrong, it is clear where the problem sits: in the sensor and perception, in the logic, or in the actuation.

The frame looks the same whatever sensors produce it: camera, radar, lidar or a mix. Different perception stacks can be compared on the same routes, with the same scoring for everyone. If an experienced driver can drive on this screen alone, the perception passes.

How it helps with SOTIF

ISO 26262 covers failures: a part that breaks or software that does not do what it was specified to do. SOTIF (ISO 21448) covers the hazards that remain when nothing is broken: the function is not good enough for the situation. In automated driving, most of these performance insufficiencies sit in perception. SOTIF asks for them to be found, their triggering conditions to be known, and the remaining risk to be argued. This demo supports that work in five ways.

  • Insufficiencies have an address. Perception and decision meet only at the frame. When the car misbehaves, comparing the frame with the truth shows whether perception delivered something wrong, or the logic decided wrongly on a correct frame. The SOTIF analysis can be done for each part on its own.
  • Errors become visible and countable. Each frame is compared with a reference perception. Missed objects, phantom objects and objects in the wrong place are drawn in red and can be counted per scenario, so acceptance criteria get a clear measure.
  • Limits are part of the output. Hidden areas, range, night and weather are reported in the frame itself. The logic can drive more carefully where the perception says it cannot see; a known limit no longer has to become a hazard.
  • Triggering conditions can be played through. A pedestrian behind a bus, a sign seen from the side, fog at a junction: download a scenario, change it, load it again. One scenario becomes a family of variations, so known hazardous scenarios can be checked and unknown ones searched for.
  • A human judgement as an exam criterion. If an experienced driver can drive safely on this screen alone, the frame contains what driving needs. It is a criterion an assessor can follow without knowing how the perception works inside.

What it does not do yet: the reference perception is geometric and the errors are injected by hand; there is no statistics over the operational design domain and no argument for the remaining risk. The demo gives SOTIF a clean interface and a way to look at it. The validation itself is still to be done.

What the frame covers

The checklist is the theory part of the driving licence: what a learner must recognise, the perception must report. Road users and their lamps, sirens with their direction, traffic lights, traffic signs with value and extra plates, lane markings, turn arrows, bus and bike lanes, zebra crossings, and the conditions: light, weather, road surface and how far the sensor can see.

Facts, not meaning. A sign is reported with type, value, position and whether it can be read; which lane it applies to and what to do is left to the decision stack. Sign types follow the ASAM OSI list (German StVO numbering) and each country's codes. Signs are drawn by shape, as the Vienna Convention defines them, so one colour is enough.

How it works
  1. ScenarioRecorded traffic and lights from a CommonRoad scenario, converted once to JSON.
  2. WorldHolds the full truth at time t, including what no sensor can see.
  3. PerceptionCasts shadows from the sensor point. Hidden objects are dropped.
  4. FrameFacts only: objects, unknown areas, lanes, lights, signs. No predictions.
  5. ScreenDrawn from the frame alone. It never reads the world.
About this prototype
  • Twelve built-in scenes: the 30 s city loop from the video, six training scenarios built the PEGASUS way (functional, logical, concrete scenario, with the ISO 34502 risk factors and the driving rule; see "About this scenario"), and five CommonRoad scenarios. Any CommonRoad file (2018b or 2020a) or converted JSON can be loaded under Options. Files are read in the browser and not uploaded.
  • Scenarios from data sets licensed for non-commercial use only (highD, inD, rounD, exiD, uniD) are refused.
  • In the city loop the ego follows the video's speed: it stops at red and drives on at green. In the CommonRoad scenarios it keeps its start speed and drives straight on; playback stops before it would hit a recorded road user. Steering comes in milestone 3.
  • Recorded traffic has no lamp data, so brake lights follow the speed: on when a vehicle slows down or stands. The city loop adds signs, a bus stop, turn arrows, a van with hazard lights, the bus indicating, and an ambulance with blue lights and siren. In Lankershim, one pedestrian on the crosswalk was added for the demo.
  • Sensor: one point at the front of the ego, 60 m range, shorter at night and in rain, snow or fog. No sensor noise yet.
  • The page runs a JavaScript port of the Python prototype. Both agree exactly on all twelve scenes (16,982 checks, perception errors included) and convert 27 of 28 CommonRoad test files identically; the one difference is a synthetic file whose vehicles have no heading.