GDFlow: Anomaly Detection with NCDE-based Normalizing Flow for Advanced Driver Assistance System

Kangjun Lee, Minha Kim, Youngho Jun, Simon S. WooarXiv 2024 · DOI · arXiv

Introduction

Modern Advanced Driver Assistance Systems (ADAS), particularly Adaptive Cruise Control (ACC), often utilize fixed deceleration profiles (e.g., smooth, normal, strong). These "one-size-fits-all" settings frequently fail to account for individual driver nuances or varying road conditions, leading to braking behaviors that may feel overly aggressive or dangerously late to the user. To bridge this gap, it is essential to identify anomalous braking patterns—deviations from a specific driver's unique baseline.

However, developing robust anomaly detection for vehicles is hindered by three primary factors: the lack of labeled data in real-world sensor streams, the continuous nature of driving dynamics which discrete-time models (like RNNs) struggle to capture, and the high sensitivity of traditional clustering methods to hyperparameter tuning across different vehicle platforms.

Methodology

The GDFlow (Graph Neural Controlled Differential Equation Normalizing Flow) framework is an unsupervised anomaly detection system designed to model the complex, continuous patterns of driver behavior. The architecture is built upon three primary pillars:

1. Neural Controlled Differential Equations (NCDE)

Unlike standard recurrent architectures that process data at discrete steps, NCDEs treat multivariate time series as a continuous path. This allows the model to handle irregular intervals and model the "flow" of driving more naturally, leading to better extrapolation of driving patterns even when sensor data is noisy.

2. Adaptive Graph Generation (AGG)

Driving data involves complex interdependencies between multiple sensors, such as speed, acceleration, and distance-to-lead-vehicle. GDFlow utilizes a graph structure to learn these hidden spatial dependencies, treating each sensor as a node in a network to capture the underlying relationship between different vehicle metrics.

3. Normalizing Flow (NF) and Quantile-based Likelihood

The core anomaly detection engine uses Normalizing Flows to map the complex distribution of "normal" driving data into a simple, standard normal distribution. A key innovation is the Quantile-based Maximum Likelihood objective. This training approach specifically helps the model learn the boundaries of normal behavior, ensuring that "near-normal" edge cases are correctly classified and creating a clearer statistical gap between normal and anomalous behavior.

Experimental Setup and Datasets

The researchers evaluated GDFlow using both proprietary real-world data and standard public benchmarks:

  • Real-World Deceleration Dataset: Data was collected from Hyundai IONIQ5 and GV80EV electric vehicles. This included data from two different drivers (D1 and D2) across various scenarios, with expert labeling used for evaluation purposes.
  • Public Benchmarks: To ensure generalizability beyond automotive applications, the model was tested on the Server Machine Dataset (SMD), Mars Science Laboratory (MSL), and Soil Moisture Active Passive (SMAP) datasets.

Key Results and Insights

GDFlow demonstrated State-of-the-Art (SOTA) performance across multiple evaluation metrics:

  • Accuracy: The model achieved a near-perfect AUPRC of 0.9995 on the GV80EV-D1 dataset. On the SMD benchmark, GDFlow reached an AUROC of 0.932, significantly outperforming recent models like the Anomaly Transformer (0.479) and MTGFLOW (0.881).
  • Stability and Efficiency: Unlike baseline methods like DBSCAN, which showed high performance variance, GDFlow remained stable across different hyperparameter settings. Furthermore, NCDEs proved to be more memory-efficient than RNNs, as their memory requirements scale with the complexity of the vector field rather than sequence length.
  • Real-time Viability: The model demonstrates superior inference speeds, a critical requirement for integration into real-time ADAS hardware.

Conclusion and Future Outlook

GDFlow provides a robust, continuous-time framework for identifying inconsistent braking patterns, paving the way for more personalized and safer ACC systems. While the current model is trained offline, future work will focus on "test-time adaptation," allowing the system to refine its definition of "normal" as it learns a driver's habits over several years. Additionally, researchers aim to investigate how environmental factors like extreme weather impact the distribution of normal driving behavior.

Deployment Note: GDFlow has been integrated and tested in real-world vehicle systems, with planned deployment in the Hyundai Genesis GV90 by March 2026.

Summary updated

Abstract

For electric vehicles, the Adaptive Cruise Control (ACC) in Advanced Driver Assistance Systems (ADAS) is designed to assist braking based on driving conditions, road inclines, predefined deceleration strengths, and user braking patterns. However, the driving data collected during the development of ADAS are generally limited and lack diversity. This deficiency leads to late or aggressive braking for different users. Crucially, it is necessary to effectively identify anomalies, such as unexpected or inconsistent braking patterns in ADAS, especially given the challenge of working with unlabelled, limited, and noisy datasets from real-world electric vehicles. In order to tackle the aforementioned challenges in ADAS, we propose Graph Neural Controlled Differential Equation Normalizing Flow (GDFlow), a model that leverages Normalizing Flow (NF) with Neural Controlled Differential Equations (NCDE) to learn the distribution of normal driving patterns continuously. Compared to the traditional clustering or anomaly detection algorithms, our approach effectively captures the spatio-temporal information from different sensor data and more accurately models continuous changes in driving patterns. Additionally, we introduce a quantile-based maximum likelihood objective to improve the likelihood estimate of the normal data near the boundary of the distribution, enhancing the model's ability to distinguish between normal and anomalous patterns. We validate GDFlow using real-world electric vehicle driving data that we collected from Hyundai IONIQ5 and GV80EV, achieving state-of-the-art performance compared to six baselines across four dataset configurations of different vehicle types and drivers. Furthermore, our model outperforms the latest anomaly detection methods across four time series benchmark datasets. Our approach demonstrates superior efficiency in inference time compared to existing methods.
BibTeX
@misc{lee2024gdflow,
  author = {Kangjun Lee and Minha Kim and Youngho Jun and Simon S. Woo},
  title = {{GDFlow: Anomaly Detection with NCDE-based Normalizing Flow for Advanced Driver Assistance System}},
  year = {2024},
  eprint = {2409.05346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.05346},
}
Figure