arXiv:2608.25907cs.LGAug 2026

Manuscript Offprint

arXiv:2608.25907

Quantum-Inspired Modeling of Driving Behavior

Mohammad Elayan, Omid Armantalab, Wissam Kontar

Abstract

Driver behavior is heterogeneous, context-dependent, and changes over time, and these properties shape the traffic phenomena we observe. Most models, however, fix in advance which behavioral variables interact and how. Behavior outside that form is absorbed as noise, while models flexible enough to capture it tend to lose interpretability. We introduce a quantum-inspired representation of driver behavior that combines properties usually treated separately or in part: it is continuous, probabilistic, context-dependent, history-dependent, and represents interactions among behavioral variables as learned from data. Each driver is encoded as an evolving density matrix, providing a unified representation of behavioral uncertainty, temporal evolution, and context-dependent behavioral variation. Trained without supervision on the I-24 MOTION dataset, the framework recovers three interpretable driving profiles representing three regimes: free flow, transition, and congestion. The profiles capture the behavioral range of the data and the smooth transitions drivers make between regimes as conditions change. The same representation also reproduces known macroscopic phenomena, aligning with the fundamental diagram and reproducing hysteresis loops. We also show how the representation supports practical use: it supplies context-dependent parameters to classical car-following models, and gives an autonomous vehicle a live behavioral read of the surrounding drivers with a short-horizon forecast of their motion. The framework points toward models of traffic that are interpretable and trustworthy by construction. We release an open-source toolkit on GitHub spanning data processing, training, inference, and analysis.

Keywords: Quantum Methods, Heterogeneity, Driving Behavior, Density Matrices, Traffic Flow

1. Introduction

Decades of traffic flow research have shown that no single behavioral description fits all drivers, all conditions, or all moments in a trip. Drivers differ, they change over time, and they respond to their surroundings. Capturing all three in a single representation has remained difficult, not because any one of them is unknown, but because doing so usually forces the modeler to commit in advance to which variables interact, in which direction, and through which functional form.

Most existing approaches commit to a representational form before estimation. Calibrated car-following models adopt a specific functional dependence of the response on a few low-order kinematic inputs, such as speed and gap; latent-class and mixture models choose a finite set of behavioral classes, such as “aggressive” or “timid”; regime-switching models pre-specify a discrete set of regimes, such as free flow, synchronized flow, and congestion, together with the kinematic and contextual variables that govern transitions between them. These specifications are necessary for estimation, but they also bound what a model can subsequently represent: the relational form

*Corresponding author: wkontar2@nebraska.edu is set before estimation begins, and behavior that does not fit it is treated as noise or absorbed into the residual.

We propose a different starting point. Behavioral heterogeneity is difficult to pre-specify: it is high-dimensional, shaped by individual preferences and experience, and expressed partly through rare events that a fixed functional form is unlikely to anticipate. These properties make it a natural candidate for free-form discovery, in which the data, rather than the modeler, reveal how the behavioral variables relate. The bottleneck, we argue, is not the choice of variables: familiar low-order kinematic quantities, such as speed and headway, remain adequate to describe what a driver is doing at a moment. What limits existing representations is how those variables are permitted to interact and how the resulting state is formed. We therefore keep a small set of behavioral variables, together with a few contextual variables describing the surrounding traffic, but change how they are represented. We lift the behavioral variables into a higher-dimensional nonlinear feature space using random Fourier features (RFF), and represent each driver's evolving state in that space as a density matrix. The lift makes interactions among the variables accessible without specifying them in advance, the density matrix carries information forward as a continuous, probabilistic state, and the context determines how strongly each behavioral profile contributes to that state. Figure 1 sketches the properties the representation is built to combine.

Figure

Figure 1: Conceptual motivation for the proposed representation. Drivers differ from one another, change over time, respond to context, and remain probabilistic. The framework represents these properties through an evolving density-matrix state ρi(t)\rho_i(t) in a nonlinear feature space, allowing behavioral profiles and within-profile modes to emerge from observed behavior and context, and ultimately supporting macroscopic traffic phenomena and prediction.

The representation is microscopic by construction: it describes how a single driver, evolves along that driver's trajectory, and depends only on quantities observable at each instant. When applied across many drivers, the same representation reveals macroscopic structure and traffic dynamics. For instance, we show how the recovered behavioral profiles align with the properties of the fundamental diagram, how they reproduce traffic waves and hysteresis, and how stop-and-go behavior is interpreted. This link from individual behavior to aggregate traffic phenomena is not built into the model, but emerges from the data precisely because the representation was not constrained to a fixed functional form in advance.

Our goal in this paper is to ask whether behavioral heterogeneity can be represented in a form that starts from raw observations, captures the relationships among them without pre-specifying their form, and connects back to the macroscopic traffic phenomena that motivate studying behavior in the first place. We develop such a representation, demonstrate it on the I-24 MOTION dataset, and show how it integrates with classical driving models and supports prediction of human behavior in mixed traffic.

References (35)