Using computer vision for the automated detection of cyclists’ safety-related behaviour

Research output: Contribution to journalJournal articleResearchpeer-review


The COVID-19 pandemic has increased bicycle use in cities worldwide as citizens shift from public transport towards individual transportation modes. At the same time, cycling infrastructure is slow to adapt to this increase in traffic. For crowded infrastructure, the safe behaviour of cyclists increases in importance. But while automated solutions for detecting rule infractions of motorised vehicles exist (e.g. speeding-cameras for cars), no such systems for detecting dangerous behaviours for cyclists are available, preventing road safety actors from conducting focused education campaigns.

We collected roadside video data containing 645 cyclists on multiple cycling lanes in Copenhagen, Denmark. Human observers pre-screened the video data and identified instances of unsafe behaviour, i.e. cyclists not using a helmet, using a phone, or using headphones. We trained a state-of-the-art computer vision algorithm to detect these unsafe behaviours in cyclists. The algorithm was then applied to test data, which contained 126 cyclists in total.

Overall, the algorithm detected 89.5% of the bicycles present in the test video data, i.e. 15 out of 126 cyclists were not detected. Unsafe behaviour of cyclists was correctly identified in 77% of instances (missing 18 occurrences). Generally, non-helmet-use detection worked best, while performance for headphone-use detection was the lowest.

Conclusion and Learning Outcomes
There is a lack of safety-related behavioural data for bicyclists. The automated detection of safety-related behaviour through computer vision algorithms presents an efficient way to collect comprehensive, diverse and temporal data, which policymakers can use to plan police enforcement and traffic education campaigns.
Original languageEnglish
Article number463
JournalInjury Prevention
Pages (from-to)A71-A71
Publication statusPublished - 2022


Dive into the research topics of 'Using computer vision for the automated detection of cyclists’ safety-related behaviour'. Together they form a unique fingerprint.

Cite this