# Unsupervised and Supervised Learning with the Random Forest Algorithm for Traffic Scenario Clustering and Classification

arXiv: https://arxiv.org/abs/2004.02126 · HTML: https://mlsanity.com/paper/2004.02126/

## Key facts

- Cited by 8 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 5 Apr 2020.

## Built on by (most cited first, 8 of 8)

- [Traffic Scene Similarity: a Graph-based Contrastive Learning Approach](https://mlsanity.com/paper/2309.09720/) (2023)
- [Novelty Detection and Analysis of Traffic Scenario Infrastructures in the Latent Space of a Vision Transformer-Based Triplet Autoencoder](https://mlsanity.com/paper/2105.01924/) (2021)
- [Traffic Scenario Clustering by Iterative Optimisation of Self-Supervised Networks Using a Random Forest Activation Pattern Similarity](https://mlsanity.com/paper/2105.07639/) (2021)
- [Assessing the Completeness of Traffic Scenario Categories for Automated Highway Driving Functions via Cluster-based Analysis](https://mlsanity.com/paper/2506.02599/) (2025)
- [Expert-LaSTS: Expert-Knowledge Guided Latent Space for Traffic Scenarios](https://mlsanity.com/paper/2207.09120/) (2022)
- [Few-Shot Scenario Testing for Autonomous Vehicles Based on Neighborhood Coverage and Similarity](https://mlsanity.com/paper/2402.01795/) (2024)
- [Toward Unsupervised Test Scenario Extraction for Automated Driving Systems from Urban Naturalistic Road Traffic Data](https://mlsanity.com/paper/2202.06608/) (2022)
- [Behavior-Centric Extraction of Scenarios from Highway Traffic Data and their Domain-Knowledge-Guided Clustering using CVQ-VAE](https://mlsanity.com/paper/2603.16964/) (2026)

## Abstract (arXiv)

The goal of this paper is to provide a method, which is able to find categories of traffic scenarios automatically. The architecture consists of three main components: A microscopic traffic simulation, a clustering technique and a classification technique for the operational phase. The developed simulation tool models each vehicle separately, while maintaining the dependencies between each other. The clustering approach consists of a modified unsupervised Random Forest algorithm to find a data adaptive similarity measure between all scenarios. As part of this, the path proximity, a novel technique to determine a similarity based on the Random Forest algorithm is presented. In the second part of the clustering, the similarities are used to define a set of clusters. In the third part, a Random Forest classifier is trained using the defined clusters for the operational phase. A thresholding technique is described to ensure a certain confidence level for the class assignment. The method is applied for highway scenarios. The results show that the proposed method is an excellent approach to automatically categorize traffic scenarios, which is particularly relevant for testing autonomous vehicle functionality.
