Computer vision · 2022

Traffic safety assessment with trajectory extraction and conflict modelling

Measuring how dangerous a junction is before anyone gets hurt there. A pilot for the Flemish government, 2022.

Six maps of the same junction, drawn from the paths of pedestrians after one to six weekdays of recording. The picture fills in from 876 paths to 5,599 and then stops changing.
Pedestrian paths at one junction after one to six weekdays of recording. After six days the picture stops changing.

The problem

Accidents are too rare to measure safety with. By the time a junction has enough of them to show up in the statistics, people have been hurt. What you want to count is the accident that almost happened, and nobody reports those.

The instrument

Anonymised camera footage becomes the trajectory of every road user. From the trajectories the system scores each encounter on two things: how close the two came to colliding, and how bad the collision would have been. Together they give one severity score per encounter.

Does it measure danger?

  • Against a reference. The speeds it derives matched a certified police measurement system.
  • Against theory. Traffic safety research predicts a pyramid: many undisturbed passages, few serious conflicts. The scores came out in that shape, with fewer than 1 in 100 encounters flagged as potentially serious.
  • Against people. Checking flagged conflicts by hand showed where it fails. It is tuned to miss nothing, so it flags too much. One flagged event still needs a person. Comparing places and times of day holds up, as long as the errors are spread evenly.

How much data is enough?

The picture at the top is the answer for movement: after six weekdays of recording, the map of paths stops changing. For traffic counts it takes three weeks. It is the same question as how many observations it takes to characterise a person, asked about a junction.

My role

I steered the project as technical lead and set the roadmap and the approach. In execution, my focus was on how to model traffic conflicts.

Read more: the final report (PDF, in Dutch).