Fuzzy hazard assessment for driver assistance

A rule-based fuzzy system assesses traffic situations in the way experienced drivers do, and states which vehicles and which rule are decisive.

ongoing

Dynamic traffic simulation: at the top the motorway with the ego vehicle (EGO), the decisive pair of vehicles outlined in red; below, the hazard value over time; on the right, the hazard value, the dominant rule and the active cell of the hazard map. The user interface is in German.

A vehicle with environment sensors continuously measures the distances and speeds of the vehicles around it. From these, a single, understandable figure is to be derived: how dangerous is the situation right now, and which vehicles are responsible? A rule-based fuzzy system translates the knowledge of experienced drivers into readable if-then rules. For every hazard value, it can be stated which rule and which vehicles caused it.

Hazard assessment is the link between perception and behavioural decision. A driver assistance system can use the hazard value to issue a warning, to allow or suppress a manoeuvre such as a lane change, or to adjust its speed. The scenario is a typical motorway situation: the ego vehicle drives in the right-hand lane, with the overtaking lane to its left.

Why fuzzy logic?

How people judge traffic situations is easy to describe in words but hard to capture in exact thresholds: “The car in front of me is close and much slower, and someone is closing in fast on the left. That is very dangerous.”

A rule-based fuzzy system adopts exactly this kind of expert knowledge:

  • Terms such as close ahead or much faster are fuzzy sets with smooth transitions.
  • The knowledge is held in readable if-then rules.
  • The result is traceable: for every hazard value, the rule and the vehicles that caused it can be named.
  • Small changes in the measurements lead to small changes in the result. There are no jumps at artificial boundaries.

What the system measures

For each surrounding vehicle, three quantities relative to the ego vehicle are considered: the lateral offset (own or left lane), the distance ahead or behind, and the relative speed (faster or slower than the ego vehicle). Each quantity is described by five linguistic terms, such as far behind, close behind, close ahead and far ahead. The output is the hazard value on a scale from 0 to 10, ranging from harmless through medium to highest.

The terms are modelled as fuzzy numbers of the potential function type. With only five parameters, this also covers asymmetric terms and terms of differing sharpness.

From the hazard map to 230 rules

The expert knowledge is first formulated as a hazard map: a matrix of 4 × 4 individual situations, for one vehicle in the ego lane and one in the left lane. Each vehicle can be in one of four states:

  • ahead and moving away
  • ahead and being caught up
  • behind and closing in
  • behind and falling back

Each cell of the map is assigned a hazard level. For example, if the vehicle ahead in the ego lane is slower and the left lane is free, overtaking is possible and the hazard is medium. If a vehicle is closing in from behind on the left at the same time, it rises to high or even highest, depending on distances and speeds.

The rule base is generated automatically from the map. Ambiguous situations and special cases, such as a vehicle directly alongside on the left, receive rules of their own. The result is a rule base of 230 rules.

Four vehicles, four pairs, one hazard value

Four positions around the ego vehicle are decisive: ahead and behind in the ego lane, ahead and behind in the left lane. From these, the system forms the four possible pairs of one vehicle in the ego lane and one in the left lane, and assesses each pair with the same rule system. The pair with the highest hazard value determines the result: it is the situation that decides behaviour. If a position is empty, a distant substitute vehicle that poses no obstacle takes its place.

The evaluation follows the classic scheme of a rule-based fuzzy system: fuzzification of the measurements, evaluation of the rules (MIN), combination per output term (MAX), and defuzzification into a crisp hazard value. Three methods are available for this.

Dynamic traffic simulation

In the video above, any number of vehicles drive on a two-lane motorway, follow one another, change lanes and overtake according to German traffic rules (keep right, no overtaking on the right). The system assesses the situation at every time step; the hazard value and the active cell of the hazard map can be followed live.

Traceable instead of a black box

The project shows how the decisions of a technical system can remain explainable: every hazard value can be traced back to a readable rule and to specific vehicles. Experts can review and change the knowledge base without having to retrain the system.

Research topic: explainable AI →

Any questions?

Interested in working with us or would you like to learn more about our research? We look forward to hearing from you.

Get in touch →