Driver Behavior Estimation at Signalized Intersections Using a Physics-Constrained Decision-Conditioned Autoregressive Transformer

arXiv cs.LG Papers

Summary

This paper proposes a two-stage physics-constrained autoregressive transformer model to predict driver stop-go decisions and longitudinal trajectories at signalized intersections, using real-world data to enhance traffic safety.

arXiv:2609.16058v1 Announce Type: new Abstract: Red-light violations and harsh braking at signalized intersections are major contributors to traffic accidents. This paper analyzes and predicts human driver decision-making and longitudinal trajectory behavior during traffic light signal transitions. We collected a diverse real-world dataset comprising 449 approach runs under varying speed and distance conditions. Vehicle motion was recorded using RTK-corrected GNSS with centimeter-level accuracy, and driver heart rate and multi-level comfort ratings were monitored. Spatial and temporal calibration ensured precise alignment between vehicle state and signal timing. Statistical analysis identifies required deceleration as the dominant single predictor of the stop-go decision, and heteroscedastic Gaussian modeling of peak deceleration reveals five empirical comfort ranges derived from human stopping behavior. Based on this insight, we propose a two-stage modeling framework. Stage 1 predicts the binary maneuver decision, and Stage 2 generates the longitudinal acceleration trajectory using a decision-conditioned autoregressive Transformer with physics constraints, including target-state conditioning and jerk limits. The proposed architecture outperforms baseline methods and achieves 0.49m/s^2 acceleration MAE and 0.62m distance MAE. It also estimates the future stopping-comfort level of the human driver from a single yellow-onset snapshot. Qualitative results demonstrate realistic human-like braking behavior. The dataset and source code are publicly available.
Original Article
View Cached Full Text

Cached at: 09/16/26, 08:36 AM

# Driver Behavior Estimation at Signalized Intersections Using a Physics-Constrained Decision-Conditioned Autoregressive Transformer
Source: [https://arxiv.org/html/2609.16058](https://arxiv.org/html/2609.16058)
Mohammad KhoshkdahanAffiliation:Mohammad Khoshkdahan is a Ph\.D\. student and Alexey Vinel is a Professor at Karlsruhe Institute of Technology \(KIT\), Germany\.[mohammad\.khoshkdahan@kit\.edu](mailto:[email protected])Pavel LaskovAlexey VinelAffiliation:Mohammad Khoshkdahan is a Ph\.D\. student and Alexey Vinel is a Professor at Karlsruhe Institute of Technology \(KIT\), Germany\.[mohammad\.khoshkdahan@kit\.edu](mailto:[email protected])Affiliation:Alexey Vinel is also a Professor at Halmstad University, Sweden\.

###### Abstract

Red\-light violations and harsh braking at signalized intersections are major contributors to traffic accidents\. This paper analyzes and predicts human driver decision\-making and longitudinal trajectory behavior during traffic light signal transitions\. We collected a diverse real\-world dataset comprising 449 approach runs under varying speed and distance conditions\. Vehicle motion was recorded using RTK\-corrected GNSS with centimeter\-level accuracy, and driver heart rate and multi\-level comfort ratings were monitored\. Spatial and temporal calibration ensured precise alignment between vehicle state and signal timing\. Statistical analysis identifies required deceleration as the dominant single predictor of the stop–go decision, and heteroscedastic Gaussian modeling of peak deceleration reveals five empirical comfort ranges derived from human stopping behavior\. Based on this insight, we propose a two\-stage modeling framework\. Stage 1 predicts the binary maneuver decision, and Stage 2 generates the longitudinal acceleration trajectory using a decision\-conditioned autoregressive Transformer with physics constraints, including target\-state conditioning and jerk limits\. The proposed architecture outperforms baseline methods and achieves 0\.49 m/s2acceleration MAE and 0\.62 m distance MAE\. It also estimates the future stopping\-comfort level of the human driver from a single yellow\-onset snapshot\. Qualitative results demonstrate realistic human\-like braking behavior\. The dataset and source code are publicly available\.\*\*\*[https://github\.com/mohammadkhsh/driver\-2s\-transformer](https://github.com/mohammadkhsh/driver-2s-transformer)

## IIntroduction

Signalized intersections are critical points in urban traffic networks where timing and driver response directly influence safety\. Inappropriate reactions during green\-to\-yellow transitions create two major risks\. Abrupt braking may cause rear\-end collisions, while late crossing during red can lead to severe intersection crashes\. Drivers must therefore either decelerate smoothly and stop before the signal or proceed safely through the intersection under yellow\. Because this decision involves uncertainty, perception, and vehicle dynamics under time pressure, accurate modeling requires joint understanding of both maneuver choice and trajectory execution\.

Predictive models that capture both the stop–go decision and the full braking trajectory are essential for reducing aggressive stopping and red\-light violations\. Such models can support adaptive signal timing or vehicle\-to\-infrastructure \(V2I\) systems that anticipate unsafe maneuvers\[[1](https://arxiv.org/html/2609.16058#bib.bib22)\]\. If the driver’s physiological response and perceived braking stress can be estimated from vehicle dynamics together with contextual factors such as demographics, signal timing, and environmental conditions, interventions can be timed more precisely\. Speed adaptation can begin early and smoothly, potentially even while the signal is still green\. This reduces the risk of late harsh braking that leads to violations and avoids premature deceleration that may cause rear\-end conflicts\. Accurate trajectory prediction therefore enables both safety and comfort to be improved in a coordinated manner\.

![Refer to caption](https://arxiv.org/html/2609.16058v1/overview_exp_setup.png)Fig\. 1:Overview of the experimental configuration\. The figure shows the roadside traffic light unit, vehicle\-side sensing and communication system, and the wireless data exchange architecture\. The top panel illustrates a representative stopping run with longitudinal acceleration and speed profiles versus distance to the traffic light\.Our contributions address these challenges in three directions\. To the best of our knowledge, this is the first real\-world dataset for driver trajectories at signalized intersections that combines centimeter\-level vehicle motion with synchronized driver physiology and stopping\-comfort feedback \(Fig\.[1](https://arxiv.org/html/2609.16058#S1.F1)\)\. The data were collected using a production vehicle with RTK\-corrected GNSS and a dedicated software system that controls traffic light timing from vehicle distance and dynamics while synchronously logging all signals\. We statistically analyze driver behavior to identify the main factors governing decision and braking dynamics and use these findings to design an efficient generative model\. We propose a two\-stage decision\-conditioned autoregressive \(DCAR\) Transformer\[[2](https://arxiv.org/html/2609.16058#bib.bib23)\]that predicts the maneuver decision and then generates the full deceleration trajectory until stopping or crossing\. Physics\-based constraints enforce realistic acceleration profiles\. Experiments across multiple configurations show that a single yellow\-onset snapshot is sufficient to generate the complete stopping trajectory and estimate driver comfort level\.

## IIRelated Work

Comfort\-oriented deceleration has been moderately explored in current driving literature\. Studies suggest passengers tolerate longitudinal decelerations around−3\.5\-3\.5m/s2\[[3](https://arxiv.org/html/2609.16058#bib.bib15)\], with−4\-4m/s2acting as an acceptable comfort limit during automated collision avoidance\[[4](https://arxiv.org/html/2609.16058#bib.bib16)\]\. Despite these findings, establishing quantified, multi\-level comfort profiles explicitly for red\-light decelerations remains an unaddressed gap\.

Driver behavior at signalized intersections has been studied from both decision and trajectory perspectives\. Early field studies statistically described deceleration rates and stopping probabilities at yellow onset but did not perform predictive modeling\[[5](https://arxiv.org/html/2609.16058#bib.bib1),[6](https://arxiv.org/html/2609.16058#bib.bib2)\]\. Stop/go behavior has been studied with binary choice and probabilistic regression models relating approach speed, distance to the stop line, and arrival time to stopping probability and violation risk\[[7](https://arxiv.org/html/2609.16058#bib.bib3),[8](https://arxiv.org/html/2609.16058#bib.bib4),[9](https://arxiv.org/html/2609.16058#bib.bib5),[10](https://arxiv.org/html/2609.16058#bib.bib6),[11](https://arxiv.org/html/2609.16058#bib.bib19)\]\. Early regression frameworks provide interpretable decision boundaries but often rely on camera\-based or roadside sensing, which lacks the spatial and temporal precision of RTK\-GNSS and typically omits detailed driver demographics\. Machine learning models using support vector machines, random forests, adaptive boosting, and classification trees improve predictive accuracy and capture nonlinear kinematic interactions\[[12](https://arxiv.org/html/2609.16058#bib.bib7),[13](https://arxiv.org/html/2609.16058#bib.bib8),[14](https://arxiv.org/html/2609.16058#bib.bib9)\], but remain limited to discrete decision prediction and do not generate continuous deceleration trajectories\. Stochastic and state\-transition approaches add temporal evolution through Monte Carlo simulations of required acceleration in dilemma zones\[[15](https://arxiv.org/html/2609.16058#bib.bib10)\], hazard\-based conflict probability during yellow onset\[[16](https://arxiv.org/html/2609.16058#bib.bib11)\], and hidden Markov inference of future driver states from sequential speed and signal data\[[9](https://arxiv.org/html/2609.16058#bib.bib5)\]\. While these models incorporate time structure, most do not explicitly represent the cognitive dynamics of decision formation\. Recent work emphasizes the continuous nature of yellow\-phase decisions\[[17](https://arxiv.org/html/2609.16058#bib.bib12)\]and broader behavior characterization using interpretable machine learning for driving\-style classification\[[18](https://arxiv.org/html/2609.16058#bib.bib13)\]or structural equation methods for scrambling behavior\[[19](https://arxiv.org/html/2609.16058#bib.bib14)\], although combining decision logic with physically consistent deceleration\-trajectory generation remains underexplored\.

While datasets like SIND\[[20](https://arxiv.org/html/2609.16058#bib.bib17)\]use drones to capture valuable vehicle dynamics, they lack extended tracking distances, driver\-specific features, and the centimeter\-level accuracy of RTK\-GNSS\. This lack of precision is a critical limitation, as the GNSS\-only accuracy that current V2I systems rely upon is insufficient for high\-fidelity tracking, particularly in urban environments where buildings further degrade signal quality\[[21](https://arxiv.org/html/2609.16058#bib.bib18)\]\. Furthermore, although simulation\-based trajectory estimation\[[22](https://arxiv.org/html/2609.16058#bib.bib20)\]can generate diverse scenarios with rich participant data, human subjects within these virtual environments cannot physically experience the actual forces of deceleration, nor can they feel the true sensation of speed found in a real\-world vehicle\.

Therefore, a critical need remains for a dedicated, high\-precision dataset at signalized intersections that incorporates comprehensive participant profiles, physiological responses, and multi\-level comfort ratings during stopping to address this gap\. Furthermore, applying autoregressive transformer architectures\[[2](https://arxiv.org/html/2609.16058#bib.bib23)\]to this precise and comprehensive data leads to a more realistic estimation of vehicle trajectories and human driver decisions\.

## IIIExperimental Setup

### III\-AData Collection

The study captures three coupled aspects of yellow onset behavior under realistic driving conditions\. These are the stop go decision at yellow onset, the resulting vehicle trajectory, and the driver reported acceleration induced stress together with physiological response\.

Thirty licensed drivers of different ages and both genders participated\. Each completed the full protocol individually under identical conditions\. Data collection lasted eight days\. In each run participants drove along a straight traffic\-free road longer than 300 m and approached a single instrumented traffic light\. More than 80 m of unobstructed road was available after the traffic light so that surrounding traffic did not influence or distract the driver during the stop/go decision\. Before the main trials, participants completed a familiarization phase of about 5–10 minutes to adapt to brake sensitivity and vehicle control\. One or two practice runs followed to confirm task understanding\. All received identical written instructions and were asked to follow normal traffic rules\. A green\-only run was randomly inserted to reduce anticipation bias and was excluded from dataset\. All experiments were conducted during daytime at the same location using the same vehicle\. Each participant performed twelve main runs at instructed speeds of 40, 50, or 60 km/h\. Selected participants additionally completed 70 km/h runs as well\. Drivers were told that deviations of approximately±5\\pm 5km/h were acceptable to eliminate the distraction effect\. This produced a continuous distribution of actual yellow onset speeds \(vonsetv\_\{\\mathrm\{onset\}\}\), which is more suitable for behavior modeling than discrete nominal speeds\. In addition to voluntary decision runs, two forced\-stop runs were performed at the end of each session\. Participants were instructed to stop regardless of their intention\. These runs captured higher deceleration magnitudes that occur less frequently in natural decisions\. After each stopping maneuver, drivers rated the stress induced by the applied acceleration on a five point scale where 1 indicates very high stress and 5 indicates very comfortable and smooth deceleration\.

The traffic signal automatically switched from green to yellow at predefined upstream distance thresholds \(DthrD\_\{\\mathrm\{thr\}\}\) between 12 m and 79 m\. Before the main study two authors conducted repeated pilot drives to identify speed distance combinations near the hesitation region between stop and go\. The final design increased sampling density around this region while still including shorter and longer distances that typically lead to clear decisions\.

Vehicle position, speed, longitudinal acceleration, and traffic signal state were recorded during each run\. Heart rate was continuously measured with a wearable sensor\. Recording continued for about 12 s after standstill to capture delayed cardiovascular response\.

### III\-BVehicle, Sensor, and Traffic Light Setup

Experiments were conducted using a standard passenger vehicle \(Audi A6, automatic, diesel\) to ensure consistent braking characteristics and avoid drivetrain\-dependent effects such as regenerative braking\. A portable three\-aspect traffic light was installed roadside and controlled via a relay interface connected to an NVIDIA Jetson Orin\. The Jetson received UDP commands from the vehicle\-side system and executed signal transitions\. Vehicle–infrastructure communication used outdoor wireless access points \(TP\-Link EAP215\) to provide stable long\-range, low\-latency connectivity\. Vehicle kinematics \(position, speed, longitudinal acceleration\) were recorded using a Racelogic VBOX Touch data logger\[[23](https://arxiv.org/html/2609.16058#bib.bib21)\]with RTK correction via NTRIP modem\. Runs were initiated only after RTK fix\. RTK provided centimeter\-level accuracy compared to meter\-scale standalone GNSS errors\. The GNSS antenna was hood\-mounted with a metallic ground plane\. Data were logged at 10 Hz and streamed to a laptop\. Heart rate was measured using a Polar Verity Sense sensor \(transferred via BLE to the laptop\)\. A custom software interface developed by the authors managed real\-time data acquisition, traffic light control, calibration, and experiment configuration\. Green was activated at run start\. Yellow was triggered automatically when the vehicle reached predefined approach distances via UDP commands to the roadside controller\. To replicate typical European speed\-dependent signal timing, red followed after3​s3\\,\\mathrm\{s\}\(≤50​km/h\\leq 50\\,\\mathrm\{km/h\}\),4​s4\\,\\mathrm\{s\}\(60​km/h60\\,\\mathrm\{km/h\}\), and5​s5\\,\\mathrm\{s\}\(70​km/h70\\,\\mathrm\{km/h\}\) of yellow\.

### III\-CDistance Calibration and Longitudinal Correction

Let the GNSS measurement at timettbe𝐩⁡\(t\)=\[φ⁡\(t\),λ⁡\(t\),h⁡\(t\)\]⊤\\mathbf\{p\}\(t\)=\[\\varphi\(t\),\\lambda\(t\),h\(t\)\]^\{\\top\}in geodetic coordinates\. Let𝐩TL\\mathbf\{p\}\_\{\\mathrm\{TL\}\}denote the traffic light reference location and𝐩0\\mathbf\{p\}\_\{0\}a reference point placed 200 m upstream on the road centerline\. Because vehicles may not travel exactly along the centerline, direct geodetic distance introduces lateral bias\. The longitudinal distance is therefore obtained by projection onto the road axis defined by the segment connecting𝐩0\\mathbf\{p\}\_\{0\}and𝐩TL\\mathbf\{p\}\_\{\\mathrm\{TL\}\}\.

Geodetic coordinates are mapped to a local East–North frame centered at𝐩TL\\mathbf\{p\}\_\{\\mathrm\{TL\}\}\. With mean Earth radiusRR, first\-order linearization yields

Π⁡\(𝐩⁡\(t\)\)=\[R​cos⁡\(φTL\)​\(λ⁡\(t\)−λTL\)R⁡\(φ⁡\(t\)−φTL\)\],\\Pi\(\\mathbf\{p\}\(t\)\)=\\begin\{bmatrix\}R\\cos\(\\varphi\_\{\\mathrm\{TL\}\}\)\\big\(\\lambda\(t\)\-\\lambda\_\{\\mathrm\{TL\}\}\\big\)\\\\ R\\big\(\\varphi\(t\)\-\\varphi\_\{\\mathrm\{TL\}\}\\big\)\\end\{bmatrix\},\(1\)where angular differences are expressed in radians\.

Let the road direction be given byΠ⁡\(𝐩0\)\\Pi\(\\mathbf\{p\}\_\{0\}\)\. The signed longitudinal distance to the traffic light is

d⁡\(t\)=Π​\(𝐩0\)⊤​Π​\(𝐩⁡\(t\)\)‖Π⁡\(𝐩0\)‖2,d\(t\)=\\frac\{\\Pi\(\\mathbf\{p\}\_\{0\}\)^\{\\top\}\\Pi\(\\mathbf\{p\}\(t\)\)\}\{\\\|\\Pi\(\\mathbf\{p\}\_\{0\}\)\\\|\_\{2\}\},\(2\)which is positive upstream, zero at the reference, and negative after passing the traffic light\. The projection removes lateral\-offset bias in direct geodetic distance\.

In addition to spatial calibration, temporal latency in the sensing and actuation chain shifts the effective yellow onset position\. If this delay is ignored, the visible yellow transition occurs at a shorter physical distance than intended\. Measurements with high\-speed video and visual road markers show that the resulting spatial offset can reach up to 4\.5 m depending on vehicle speed\. The total latency includes relay switching, I2C and Jetson execution, optical rise time of the traffic light, and internal buffering delay of the GNSS logger\. The combined fixed latency of these components was measured on average asτlat=142​ms\\tau\_\{\\mathrm\{lat\}\}=142~\\mathrm\{ms\}\. Additionally, a communication latency between the vehicle and the Jetson unit is considered and measured at each timestamp via a ping\-based functionLping​\(tk\)L\_\{\\mathrm\{ping\}\}\(t\_\{k\}\)\.

At each discrete update instanttkt\_\{k\}, the software predicts the remaining time to the desired yellow onset distanceDthrD\_\{\\mathrm\{thr\}\}from the current corrected longitudinal distanced⁡\(tk\)d\(t\_\{k\}\)and speedv⁡\(tk\)v\(t\_\{k\}\)\. The yellow command send time is computed as

tsend​\(tk\)=tk\+max⁡\(0,d⁡\(tk\)−Dthrmax⁡\(v⁡\(tk\),ϵv\)−\(τlat\+Lping​\(tk\)\)\),t\_\{\\mathrm\{send\}\}\(t\_\{k\}\)=t\_\{k\}\+\\max\\\!\\left\(0,\\,\\frac\{d\(t\_\{k\}\)\-D\_\{\\mathrm\{thr\}\}\}\{\\max\\\!\\big\(v\(t\_\{k\}\),\\epsilon\_\{v\}\\big\)\}\-\\big\(\\tau\_\{\\mathrm\{lat\}\}\+L\_\{\\mathrm\{ping\}\}\(t\_\{k\}\)\\big\)\\right\),\(3\)whereϵv\>0\\epsilon\_\{v\}\>0prevents numerical instability at very low speed\. If the predicted time\-to\-threshold is smaller than the latency budget, the command is sent immediately\. Otherwise, the transmission is delayed accordingly\. This computation is repeated at each update, and the command is issued after the last feasible instant to reduce sensitivity to speed fluctuations\. After applying this calibration procedure, the spatial onset error was reduced to below 30 cm\. Further reduction was limited by the unknown and time\-varying internal latency of the GNSS logger in the current setup\.

![Refer to caption](https://arxiv.org/html/2609.16058v1/fig_distance_threshold_by_speed_tiny.png)Fig\. 2:Summary of experiment\-setting and speed\-tracking characteristics across instructed\-speed conditions\. \(a\) Yellow\-onset distance\-threshold selectionDthrD\_\{\\mathrm\{thr\}\}versus instructed speedvinstv\_\{\\mathrm\{inst\}\}, shown with mean±\\pmSD\. \(b\) Actual speed at yellow onsetvo​n​s​e​tv\_\{onset\}for eachvinstv\_\{\\mathrm\{inst\}\}, with instructed\-speed references and compact tracking statistics \(mean speed and speed\-error SD\)\. \(c\) Age\-binned mean underspeed magnitude\(Δ​v=vinst−vo​n​s​e​t\)\(\\Delta v=v\_\{\\mathrm\{inst\}\}\-v\_\{onset\}\)versusvinstv\_\{\\mathrm\{inst\}\}, shown in km/h \(raw values, darker blue indicates larger underspeed\)\.

## IVDataset Characteristics and Statistical Structure

### IV\-ARun Distribution and Speed Tracking

A total of 449 runs were recorded \(185,109 GNSS samples\), comprising 392 normal runs for stop–go analysis and the remainder dedicated to high\-deceleration forced\-stop evaluation\.

Figure[2](https://arxiv.org/html/2609.16058#S3.F2)\(a\) summarizes yellow\-onset thresholdsDthrD\_\{\\mathrm\{thr\}\}by instructed speedvinstv\_\{\\mathrm\{inst\}\}\. Thresholds span 12–79 m with broad coverage across all speed groups\. The meanDthrD\_\{\\mathrm\{thr\}\}increases withvinstv\_\{\\mathrm\{inst\}\}, reflecting the experimental design to preserve decision variability at higher speeds\. Run allocation is balanced at 40, 50, and 60 km/h \(n=112n=112each\) and lower at 70 km/h \(n=56n=56\) due to the limited number of realistic high\-speed urban scenarios\. Figure[2](https://arxiv.org/html/2609.16058#S3.F2)\(b\) shows actual yellow\-onset speedvonsetv\_\{\\mathrm\{onset\}\}measured by RTK\-corrected GNSS\. In 78\.8% of runs, drivers traveled below the instructed speed\. The tracking errorΔ​v=vonset−vinst\\Delta v=v\_\{\\mathrm\{onset\}\}\-v\_\{\\mathrm\{inst\}\}equals−2\.26±2\.83\-2\.26\\pm 2\.83km/h \(mean±\\pmSD\)\. Drivers generally adhered to the instructed speed but maintained a systematic underspeed\. This negative bias is consistent with the intentional positive offset in production vehicle speed displays implemented by manufacturers\. Figure[2](https://arxiv.org/html/2609.16058#S3.F2)\(c\) presents age\-binned mean underspeed magnitude\(−Δ​v\)\(\-\\Delta v\)\. Underspeed mostly increases with instructed speed, consistent with proportional display bias and greater tracking difficulty at higher velocities\. Older participants show descriptively smaller tracking error\. However, this age effect is not statistically significant \(Kruskal–WallisH=3\.79H=3\.79,p=0\.150p=0\.150\)\.

### IV\-BKinematic Variables

For each decision run, the longitudinal distance and actual speed at yellow onset are denoted byDthrD\_\{\\mathrm\{thr\}\}andvonsetv\_\{\\mathrm\{onset\}\}\. Two derived quantities are defined as

TTI=Dthrvonset,areq=vonset22​Dthr,\\mathrm\{TTI\}=\\frac\{D\_\{\\mathrm\{thr\}\}\}\{v\_\{\\mathrm\{onset\}\}\},\\qquad a\_\{\\mathrm\{req\}\}=\\frac\{v\_\{\\mathrm\{onset\}\}^\{2\}\}\{2D\_\{\\mathrm\{thr\}\}\},\(4\)
where TTI is the time\-to\-intersection andareqa\_\{\\mathrm\{req\}\}is the constant deceleration required to stop at the traffic light\.

Figure[3](https://arxiv.org/html/2609.16058#S4.F3)presents the empirical distributions of TTI andareqa\_\{\\mathrm\{req\}\}\. The experiment design covers a broad range of both variables, including low\-TTI high\-deceleration cases and high\-TTI moderate\-deceleration cases, with sufficient sampling around the transition region\. Both genders and all three age groups are represented across the observed span of TTI andareqa\_\{\\mathrm\{req\}\}\. This broad kinematic coverage reduces bias from unequal exposure when comparing demographic groups\.

Fig\. 3:Dataset statistics summary for TTI and required decelerationareqa\_\{\\mathrm\{req\}\}, including demographic coverage across the observed range\.
### IV\-CDeterminants of the Stop–Go Decision

To quantify the influence of kinematic and demographic factors on the stop–go outcome, we employ a Bayesian hierarchical logistic model, whose coefficients and participant\-level random intercepts are inferred from data\. Letyi∈\{0,1\}y\_\{i\}\\in\\\{0,1\\\}denote the decision of runii\(1 = go\)\. The model is

\{yi∼Bernoulli⁡\(πi\),logit⁡\(πi\)=β0\+∑k=1Kβk​xi​k\+up⁡\[i\],uj∼𝒩⁡\(0,σu2\)\.\\left\\\{\\begin\{aligned\} y\_\{i\}&\\sim\\mathrm\{Bernoulli\}\(\\pi\_\{i\}\),\\\\ \\mathrm\{logit\}\(\\pi\_\{i\}\)&=\\beta\_\{0\}\+\\sum\_\{k=1\}^\{K\}\\beta\_\{k\}x\_\{ik\}\+u\_\{p\[i\]\},\\\\ u\_\{j\}&\\sim\\mathcal\{N\}\(0,\\sigma\_\{u\}^\{2\}\)\.\\end\{aligned\}\\right\.\(5\)
As summarized in Table[I](https://arxiv.org/html/2609.16058#S4.T1), posterior average marginal effects \(AMEs\) identifyareqa\_\{\\mathrm\{req\}\}as the dominant stop–go predictor\. This indicates that drivers may unconsciously estimate the braking effort required after yellow onset and use this perceived future demand as the main decision cue, beyond observing distance or speed separately\.

The same hierarchical logistic model is used to evaluate the posterior mean decision surfaceP¯go​\(Dthr,vonset\)\\overline\{P\}\_\{\\mathrm\{go\}\}\(D\_\{\\mathrm\{thr\}\},v\_\{\\mathrm\{onset\}\}\)over the distance–speed plane \(Fig\.[4](https://arxiv.org/html/2609.16058#S4.F4)\)\. For stop trials \(n=274n=274\), the mean required deceleration \(meanareqa\_\{\\mathrm\{req\}\}\) at yellow onset is1\.991\.99m/s2\(median1\.931\.93, SD0\.700\.70\); the upper 20% exhibitareqa\_\{\\mathrm\{req\}\}between2\.582\.58and4\.154\.15m/s2\(mean3\.053\.05\)\. This range coincides with the hesitation band, concentrated around22–44m/s2\.

The decision boundary approximately follows iso\-areqa\_\{\\mathrm\{req\}\}contours but shifts with distance and speed\. For largerDthrD\_\{\\mathrm\{thr\}\}, the stop–go transition occurs at higher deceleration levels \(approximately33–44m/s2\), whereas at shorter distances it shifts toward lower magnitudes \(approximately22–33m/s2\)\. This indicates that drivers do not apply a fixed deceleration threshold; instead, braking demand is evaluated jointly with geometric margin\. Asareqa\_\{\\mathrm\{req\}\}increases,P¯go\\overline\{P\}\_\{\\mathrm\{go\}\}rises sharply, consistent with the AME result\. The hesitation band aligns with intermediate\-to\-high deceleration demand, which suggests that drivers avoid aggressive braking once the maneuver approaches uncomfortable or safety\-critical levels\.

Fig\. 4:Distance–speed stop/go decision surface at yellow onset\. The background colormap shows the posterior meanP⁡\(go\)P\(\\mathrm\{go\}\)from the Bayesian hierarchical logistic model; the thick contour denotes the decision boundaryP⁡\(go\)=0\.5P\(\\mathrm\{go\}\)=0\.5, and the hatched band marks the hesitation region0\.4≤P⁡\(go\)≤0\.60\.4\\leq P\(\\mathrm\{go\}\)\\leq 0\.6\. Overlaid sample points are observed runs \(green: go, red: stop\), with marker size proportional to normalized driver age\. Smooth iso\-areqa\_\{\\mathrm\{req\}\}lines are superimposed \(light\-to\-dark purple for low\-to\-high required deceleration\)\.TABLE I:AME summary for stop–go predictors; AME is in percentage points and𝒞k\\mathcal\{C\}\_\{k\}is relative contribution\.DthrD\_\{\\rm thr\}vonsetv\_\{\\rm onset\}areqa\_\{\\rm req\}TTIGenderAgeAME \[pp\]−7\.5\-7\.5−4\.3\-4\.3\+33\.7\\mathbf\{\+33\.7\}\+0\.9\+0\.9\+7\.7\+7\.70\.00\.0𝒞k\\mathcal\{C\}\_\{k\}\[%\]14\.114\.19\.49\.450\.8\\mathbf\{50\.8\}10\.210\.212\.512\.53\.03\.0
### IV\-DBraking Magnitude, Comfort, and Physiological Response

Peak braking magnitude is defined per run as

\|amin\|=maxt⁡\{max⁡\(−ax​\(t\),0\)\},\|a\_\{\\min\}\|=\\max\_\{t\}\\big\\\{\\max\(\-a\_\{x\}\(t\),0\)\\big\\\},\(6\)using the minimum longitudinal acceleration during braking, expressed as positive deceleration\.

Figure[5](https://arxiv.org/html/2609.16058#S4.F5)\(a\) shows comfort rating as a function of\|amin\|\|a\_\{\\min\}\|\. A strong monotonic inverse relationship is observed\. Across all stop\-valid runs, Spearman correlation yieldsρ=−0\.675\\rho=\-0\.675\(p=2\.76×10−45p=2\.76\\times 10^\{\-45\}\)\. In forced\-stop runs, the association increases toρ=−0\.806\\rho=\-0\.806\(p=4\.00×10−14p=4\.00\\times 10^\{\-14\}\)\. The linear trend in forced\-stop trials indicates a decrease of approximately0\.4830\.483rating units per11m/s2, so comfort decreases systematically as braking demand increases\.

To determine rating\-transition boundaries on the\|amin\|\|a\_\{\\min\}\|axis, adjacent comfort classes are modeled as heteroscedastic Gaussian densities with empirical priorsπk=nk/∑jnj\\pi\_\{k\}=n\_\{k\}/\\sum\_\{j\}n\_\{j\}\. Because classes exhibit unequal variances and imbalanced sample sizes, simple midpoint thresholds or equal\-variance linear discriminant rules would be statistically inconsistent; therefore, boundaries are derived using a prior\-weighted heteroscedastic Gaussian Bayes criterion\.

The Bayes\-optimal boundaryxi​j⋆x\_\{ij\}^\{\\star\}between classesRiR\_\{i\}andRjR\_\{j\}satisfies equality of log\-posteriors,

−\(xi​j⋆−μi\)22​σi2−ln⁡σi\+ln⁡πi=−\(xi​j⋆−μj\)22​σj2−ln⁡σj\+ln⁡πj,\-\\frac\{\(x\_\{ij\}^\{\\star\}\-\\mu\_\{i\}\)^\{2\}\}\{2\\sigma\_\{i\}^\{2\}\}\-\\ln\\sigma\_\{i\}\+\\ln\\pi\_\{i\}=\-\\frac\{\(x\_\{ij\}^\{\\star\}\-\\mu\_\{j\}\)^\{2\}\}\{2\\sigma\_\{j\}^\{2\}\}\-\\ln\\sigma\_\{j\}\+\\ln\\pi\_\{j\},\(7\)which yields a quadratic equation inxi​j⋆x\_\{ij\}^\{\\star\}\. When two real solutions exist, the threshold consistent with the ordered rating scale is selected; if no crossing occurs strictly between adjacent means under empirical priors, the nearest real crossing preserving monotone class ordering is used\. Applying this rule results in transition boundaries of4\.074\.07,5\.155\.15,7\.547\.54, and9\.119\.11m/s2for\(R​5\|R​4\)\(R5\|R4\),\(R​4\|R​3\)\(R4\|R3\),\(R​3\|R​2\)\(R3\|R2\), and\(R​2\|R​1\)\(R2\|R1\), respectively\.

Figure[5](https://arxiv.org/html/2609.16058#S4.F5)\(b\) presents rating composition across deceleration bins and quantifies agreement via

A=∑k=15\(nk∑j=15nj\)2,A\\;=\\;\\sum\_\{k=1\}^\{5\}\\\!\\left\(\\frac\{n\_\{k\}\}\{\\sum\_\{j=1\}^\{5\}n\_\{j\}\}\\right\)^\{\\\!2\},\(8\)wherenkn\_\{k\}denotes the count of ratings in classRkR\_\{k\}within a deceleration bin\. HigherAAindicates stronger concentration and lower disagreement\. The highest agreement occurs in the low\-deceleration interval\[1\.5,3\.0\)\[1\.5,3\.0\)m/s2\(A=0\.745A=0\.745\), whereas the lowest agreement appears in\[4\.5,6\.0\)\[4\.5,6\.0\)m/s2\(A=0\.386A=0\.386\)\. The intermediate braking regime therefore exhibits the largest perceptual dispersion, consistent with the absence of a well\-separated posterior crossing between adjacent rating densities in this range and the resulting outward\-shifted Bayes boundary\.

Age\-group overlays show that younger drivers generally assign lower comfort ratings for the same braking magnitude\. The only exception appears in the\[6\.0,7\.5\)\[6\.0,7\.5\)m/s2interval, where the ordering reverses, likely due to differing internal reference frames rather than sampling effects\.

Figure[5](https://arxiv.org/html/2609.16058#S4.F5)\(c\) shows the within\-participant relation between heart rate elevation, defined as the difference between maximum and minimum heart rate during a stopping run, and\|amin\|\|a\_\{\\min\}\|\. Participant\-wise robust slopes yield an overall mean of 1\.173 bpm per11m/s2\. Age\-stratified slopes decrease systematically with age, indicating reduced physiological sensitivity to braking in older drivers\. This aligns with the comfort ratings, where older participants consistently report higher comfort at comparable deceleration levels\. Greater driving experience and age therefore appear to be associated with higher tolerance to braking\-induced stress\.

Fig\. 5:Physiological and comfort responses in stop\-valid runs\. \(a\) Comfort rating versus peak braking magnitude\|amin\|\|a\_\{\\min\}\|, with bin\-wise means and raw\-run overlays\. \(b\) Rating\-composition matrix over\|amin\|\|a\_\{\\min\}\|bins \(cell text: within\-bin percentage\), with age\-group bars showing mean comfort±1\\pm 1SD; row labels report disagreement indexA=∑k=15pk2A=\\sum\_\{k=1\}^\{5\}p\_\{k\}^\{2\}, wherepkp\_\{k\}is the proportion in classRkR\_\{k\}\(lowerAAindicates higher disagreement\)\. \(c\) Within\-participant relation betweenΔ​H​R=H​Rmax−H​Rmin\\Delta HR=HR\_\{\\max\}\-HR\_\{\\min\}and\|amin\|\|a\_\{\\min\}\|: thin lines are participant\-wise robust trends, shaded bands show ensemble spread \(±0\.5\\pm 0\.5SD and±1\\pm 1SD\), the thick line is the ensemble mean trend, and dashed vertical lines mark rating\-specific mean\|amin\|\|a\_\{\\min\}\|\(R5 to R1\)\.

## VModeling Human Deceleration Behavior

### V\-ATraining Setup

All experiments primarily use a random stratified split \(60% train, 40% validation\), with additional evaluation under a participant\-disjoint split\. Models are implemented in Python 3\.8\.20 with PyTorch 1\.10\.1 \(CUDA 11\.1\) and trained on a single NVIDIA GeForce RTX 4090 Laptop GPU\.

Stage 1 \(decision MLP\) is trained for 200 epochs using Adam \(LR10−310^\{\-3\}, batch size 64, hidden size 64, weight decay10−510^\{\-5\}\)\. Stage 2 \(DCAR Transformer\) uses cascade\-only conditioning from Stage 1 with true\-masking enabled and is trained for 200 epochs using AdamW \(LR7×10−47\\times 10^\{\-4\}, batch size 24, weight decay10−510^\{\-5\}, gradient clipping 4\.0\)\.

![Refer to caption](https://arxiv.org/html/2609.16058v1/transformer_overview.png)Fig\. 6:Two\-stage decision\-conditioned autoregressive trajectory generator with deterministic constraint pipeline and discrete vehicle dynamics feedback\.
### V\-BTwo\-Stage Trajectory Generator

We model yellow\-onset behavior using a two\-stage decision\-conditioned autoregressive architecture\. A discrete maneuver decision is predicted once at onset and then held fixed while a causal Transformer generates a physically constrained longitudinal acceleration trajectory in closed loop \(Fig\.[6](https://arxiv.org/html/2609.16058#S5.F6)\)\.

#### V\-B1Stage 1: Maneuver Decision Modeling

An onset\-level MLP maps\[Vonset,Dthr,TTI,areq,age,g\]\[V\_\{\\mathrm\{onset\}\},D\_\{\\mathrm\{thr\}\},\\mathrm\{TTI\},a\_\{\\mathrm\{req\}\},\\mathrm\{age\},g\]topgo∈\(0,1\)p\_\{\\mathrm\{go\}\}\\in\(0,1\)andy^=𝕀\[pgo≥0\.5\]\\hat\{y\}=\\mathbb\{I\}\[p\_\{\\mathrm\{go\}\}\\geq 0\.5\], whereggdenotes gender\. The network consists of three fully connected layers with ReLU activations and 10% dropout, followed by a Sigmoid output layer\. It is trained using class\-weighted binary cross entropy\. The outputs\(y^,pgo\)\(\\hat\{y\},p\_\{\\mathrm\{go\}\}\)condition the full trajectory rollout in Stage 2\.

#### V\-B2Stage 2: Autoregressive Trajectory Modeling

The Transformer\[[2](https://arxiv.org/html/2609.16058#bib.bib23)\]predicts signed longitudinal acceleration stepwise asatraw=𝒯θ​\(𝐳≤t\)a\_\{t\}^\{\\mathrm\{raw\}\}=\\mathcal\{T\}\_\{\\theta\}\(\\mathbf\{z\}\_\{\\leq t\}\), where the causal token at stepttis

𝐳t=\[vt,dt,areq,t,TTIt,at−1,age,y^,pgo,g,vtarget,dtarget\]\.\\mathbf\{z\}\_\{t\}=\\big\[v\_\{t\},\\ d\_\{t\},\\ a\_\{\\mathrm\{req\},t\},\\ \\mathrm\{TTI\}\_\{t\},\\ a\_\{t\-1\},\\ \\mathrm\{age\},\\ \\hat\{y\},\\ p\_\{\\mathrm\{go\}\},\\ g,\\ v\_\{\\text\{target\}\},\\ d\_\{\\text\{target\}\}\\big\]\.Here\(vtarget=0,dtarget=0\.5\)\(v\_\{\\text\{target\}\}=0,d\_\{\\text\{target\}\}=0\.5\)encodes the goal state for stopping cases, andat−1a\_\{t\-1\}denotes the previously applied \(post\-constraint\) acceleration\. Tokens are embedded as𝐞t=𝐖e​𝐳t\+𝐩t\\mathbf\{e\}\_\{t\}=\\mathbf\{W\}\_\{e\}\\mathbf\{z\}\_\{t\}\+\\mathbf\{p\}\_\{t\}with𝐳t∈ℝ11\\mathbf\{z\}\_\{t\}\\in\\mathbb\{R\}^\{11\},dmodel=96d\_\{\\mathrm\{model\}\}=96, four heads, anddk=24d\_\{k\}=24\.

Causal multi\-head self\-attention is

Attn⁡\(𝐐,𝐊,𝐕\)=softmax⁡\(𝐐𝐊⊤\+𝐌dk\)​𝐕,Mi​j=\{0j≤i−∞j\>i\\operatorname\{Attn\}\(\\mathbf\{Q\},\\mathbf\{K\},\\mathbf\{V\}\)=\\operatorname\{softmax\}\\\!\\left\(\\frac\{\\mathbf\{Q\}\\mathbf\{K\}^\{\\\!\\top\}\+\\mathbf\{M\}\}\{\\sqrt\{d\_\{k\}\}\}\\right\)\\mathbf\{V\},\\;\\;M\_\{ij\}=\\left\\\{\\begin\{array\}\[\]\{@\{\}l@\{\\,\}l@\{\}\}0&j\\leq i\\\\ \-\\infty&j\>i\\end\{array\}\\right\.\(9\)ensuring strictly autoregressive rollout\. The output projection head producesatrawa\_\{t\}^\{\\mathrm\{raw\}\}, which is processed by a deterministic constraint pipeline before integration\. A decision\-dependent terminal gate attenuates acceleration near terminal conditions,

atgate=gtatraw,gt=\(1−e−dtsafe/λd\)\(1−e−vtsafe/λv\),a\_\{t\}^\{\\mathrm\{gate\}\}=g\_\{t\}\\,a\_\{t\}^\{\\mathrm\{raw\}\},\\qquad g\_\{t\}=\\left\(1\-e^\{\-d\_\{t\}^\{\\mathrm\{safe\}\}/\\lambda\_\{d\}\}\\right\)\\left\(1\-e^\{\-v\_\{t\}^\{\\mathrm\{safe\}\}/\\lambda\_\{v\}\}\\right\),\(10\)wherevtsafe=max⁡\(vt,0\)v\_\{t\}^\{\\mathrm\{safe\}\}=\\max\(v\_\{t\},0\)and

dtsafe=\{max⁡\(dt\+0\.5,0\),y^=0,max⁡\(dt\+0\.25,0\),y^=1,d\_\{t\}^\{\\mathrm\{safe\}\}=\\begin\{cases\}\\max\(d\_\{t\}\+0\.5,0\),&\\hat\{y\}=0,\\\\ \\max\(d\_\{t\}\+0\.25,0\),&\\hat\{y\}=1,\\end\{cases\}with\(λd,λv\)=\(2\.2​m,1\.2​m/s\)\(\\lambda\_\{d\},\\lambda\_\{v\}\)=\(2\.2~\\mathrm\{m\},1\.2~\\mathrm\{m/s\}\)for stop trajectories and\(0\.8​m,1\.5​m/s\)\(0\.8~\\mathrm\{m\},1\.5~\\mathrm\{m/s\}\)for go trajectories\.

A hard jerk constraint is then applied using the discrete time stepΔ​t\\Delta tandJmax=15​m/s3J\_\{\\max\}=15~\\mathrm\{m/s^\{3\}\},

atjerk=clip⁡\(atgate,at−1−Jmax​Δ​t,at−1\+Jmax​Δ​t\),a\_\{t\}^\{\\mathrm\{jerk\}\}=\\operatorname\{clip\}\\\!\\big\(a\_\{t\}^\{\\mathrm\{gate\}\},\\ a\_\{t\-1\}\-J\_\{\\max\}\\Delta t,\\ a\_\{t\-1\}\+J\_\{\\max\}\\Delta t\\big\),\(11\)enforcing bounded acceleration rate changes for rollout stability\. The jerk cap is selected based on empirical driver data, where the maximum observed absolute jerk was\|j\|max=12\.69​m/s3\|j\|\_\{\\max\}=12\.69~\\mathrm\{m/s^\{3\}\}; choosingJmax=15​m/s3J\_\{\\max\}=15~\\mathrm\{m/s^\{3\}\}provides a small margin above the observed range while remaining consistent with realistic vehicle dynamics\.

A decision\-aware actuator clamp enforces feasible control ranges \(aminbrake=−10m/s2a\_\{\\min\}^\{\\mathrm\{brake\}\}=\-10~\\mathrm\{m/s^\{2\}\},amaxgo=3​m/s2a\_\{\\max\}^\{\\mathrm\{go\}\}=3~\\mathrm\{m/s^\{2\}\}\),

at=\{clip⁡\(atjerk,aminbrake,0\),y^=0,clip⁡\(atjerk,aminbrake,amaxgo\),y^=1,a\_\{t\}=\\begin\{cases\}\\operatorname\{clip\}\(a\_\{t\}^\{\\mathrm\{jerk\}\},a\_\{\\min\}^\{\\mathrm\{brake\}\},0\),&\\hat\{y\}=0,\\\\\[4\.0pt\] \\operatorname\{clip\}\(a\_\{t\}^\{\\mathrm\{jerk\}\},a\_\{\\min\}^\{\\mathrm\{brake\}\},a\_\{\\max\}^\{\\mathrm\{go\}\}\),&\\hat\{y\}=1,\\end\{cases\}\(12\)preventing positive acceleration in stop trajectories while allowing bounded acceleration in go trajectories\. The constrained acceleration is integrated with discrete kinematics,

dt\+1\\displaystyle d\_\{t\+1\}=dt−\(vt​Δ​t\+12​at​Δ​t2\),\\displaystyle=d\_\{t\}\-\\left\(v\_\{t\}\\Delta t\+\\tfrac\{1\}\{2\}a\_\{t\}\\Delta t^\{2\}\\right\),\(13\)vt\+1\\displaystyle v\_\{t\+1\}=max⁡\(vt\+at​Δ​t,0\),\\displaystyle=\\max\(v\_\{t\}\+a\_\{t\}\\Delta t,0\),and a terminal freeze is enforced once the trajectory enters a small stopping deadband \(where stop\-band success is defined as a final position within\[−0\.5,1\.5\]\[\-0\.5,\\,1\.5\]m relative to the stop line\) or reaches near\-zero velocity, after whichat=0a\_\{t\}=0andvt=0v\_\{t\}=0are maintained\. The model is trained on the post\-constraint trajectory so that gating and clipping behavior are internalized during learning\.

The training objective combines trajectory fidelity, terminal feasibility, and smoothness regularization,

ℒ=ℒtraj\+ℒterm\+ℒreg,\\mathcal\{L\}=\\mathcal\{L\}\_\{\\mathrm\{traj\}\}\+\\mathcal\{L\}\_\{\\mathrm\{term\}\}\+\\mathcal\{L\}\_\{\\mathrm\{reg\}\},ensuring accurate trajectory tracking while enforcing physically consistent terminal behavior\.

## VIResults

Table[II](https://arxiv.org/html/2609.16058#S6.T2)compares four trajectory\-generation approaches on the stratified split\. The DCAR Transformer achieves the lowest acceleration and trajectory\-tracking errors among the learned models across allε\\varepsilon\-metrics\. The constant deceleration baseline enforces a fixed braking profilea⁡\(t\)=−areqa\(t\)=\-a\_\{\\mathrm\{req\}\}for stop cases and therefore attains 100% stop\-band success deterministically\. However, this guarantees terminal feasibility only and results in substantially larger trajectory\-tracking errors\. The mixture\-of\-primitives reduces error relative to the constant model but remains clearly inferior to the DCAR Transformer\. Moreover, based on the comfort boundaries derived in Section[IV\-D](https://arxiv.org/html/2609.16058#S4.SS4), the DCAR Transformer generates braking profiles that match the ground\-truth driver comfort level in 84\.5% of stop cases\. This shows that future driver stopping comfort can be anticipated from a single observation at yellow onset\.

TABLE II:Trajectory\-model comparison on the stratified split\. Lower is better forε\\varepsilon\-metrics; higher is better forρstopband\\rho\_\{\\mathrm\{stop\}\}^\{\\mathrm\{band\}\}\(%\)\.Methodεa⁡\(⋅\)\\varepsilon\_\{a\(\\cdot\)\}εa⁡\(⋅\)\\varepsilon\_\{a\(\\cdot\)\}εd⁡\(⋅\)\\varepsilon\_\{d\(\\cdot\)\}εv⁡\(⋅\)\\varepsilon\_\{v\(\\cdot\)\}ρstopband\\rho\_\{\\mathrm\{stop\}\}^\{\\mathrm\{band\}\}MAERMSEMAEMAEsuccessa⁡\(t\)=−areq​\[1−y\]a\(t\)=\-a\_\{\\mathrm\{req\}\}\\,\[1\-y\]0\.8651\.1701\.4040\.854100\.0Mixture of primitives0\.8561\.3311\.4701\.78190\.0Neural ODE1\.0581\.6861\.4471\.71575\.5DCAR Transformer w/o physics0\.5591\.0320\.6660\.42698\.2DCAR Transformer \(ours\)0\.4990\.8500\.6280\.37395\.5

Table[III](https://arxiv.org/html/2609.16058#S6.T3)reports Stage 1 stop/go ablation under random and participant\-disjoint splits\. The strongest compact configuration is\(Vonset,areq\)\(V\_\{\\mathrm\{onset\}\},a\_\{\\mathrm\{req\}\}\), which achieves the highest accuracy \(92\.4%\) and the strongest F1 and precision in both splits among all tested combinations\. This indicates that onset speed and required deceleration already capture most of the discriminative structure required for stop/go classification\. Among single\-cue models,areqa\_\{\\mathrm\{req\}\}and TTI are strongest, andDthrD\_\{\\mathrm\{thr\}\}exceedsvonsetv\_\{\\mathrm\{onset\}\}, mostly consistent with Section[IV\-C](https://arxiv.org/html/2609.16058#S4.SS3)\. The full\-input model gives the highest random\-split AUC and remains competitive under participant\-disjoint evaluation\.

Under the participant\-disjoint split, overall performance decreases relative to the random split\. Since participant ID is never used as input in either setting, this gap indicates that the model can no longer benefit from implicit memorization of driver\-specific decision boundaries\.

TABLE III:Stage 1 stop/go ablation \(by onset features\) under random \(stratified run\-level\) and participant\-disjoint splits\. All metric entries are percentages \(%\), whereηacc\\eta\_\{\\mathrm\{acc\}\}andηBA\\eta\_\{\\mathrm\{BA\}\}denote accuracy and balanced accuracy, respectively\. Bold values denote the highest values in each metric column\.VonsetV\_\{\\mathrm\{onset\}\}DthrD\_\{\\mathrm\{thr\}\}TTIareqa\_\{\\mathrm\{req\}\}AgeGenderRandom \(stratified\) splitParticipant\-disjoint splitηacc\\eta\_\{\\mathrm\{acc\}\}AUCF1Prec\.ηBA\\eta\_\{\\mathrm\{BA\}\}ηacc\\eta\_\{\\mathrm\{acc\}\}AUCF1Prec\.ηBA\\eta\_\{\\mathrm\{BA\}\}✓×\\times×\\times×\\times×\\times×\\times59\.969\.454\.041\.165\.360\.464\.744\.934\.861\.3×\\times✓×\\times×\\times×\\times×\\times79\.084\.869\.761\.379\.579\.289\.269\.355\.683\.4×\\times×\\times✓×\\times×\\times×\\times91\.195\.886\.578\.992\.483\.297\.875\.260\.388\.7×\\times×\\times×\\times✓×\\times×\\times84\.193\.077\.567\.286\.283\.995\.275\.062\.187\.5✓✓×\\times×\\times×\\times×\\times89\.896\.284\.378\.290\.384\.698\.276\.862\.389\.6✓×\\times✓×\\times×\\times×\\times90\.496\.285\.478\.691\.484\.698\.076\.862\.389\.6✓×\\times×\\times✓×\\times×\\times92\.496\.488\.083\.092\.787\.997\.980\.468\.591\.0×\\times✓✓×\\times×\\times×\\times90\.496\.085\.478\.691\.484\.698\.176\.862\.389\.6×\\times✓×\\times✓×\\times×\\times91\.196\.186\.578\.992\.484\.698\.176\.862\.389\.6×\\times×\\times✓✓×\\times×\\times90\.496\.285\.478\.691\.484\.698\.176\.862\.389\.6✓×\\times×\\times✓✓×\\times90\.495\.784\.880\.890\.185\.997\.277\.964\.989\.7✓×\\times×\\times✓×\\times✓91\.196\.485\.782\.490\.685\.996\.777\.964\.989\.7✓✓✓×\\times×\\times×\\times90\.496\.385\.478\.691\.483\.998\.376\.061\.389\.2✓✓×\\times✓×\\times×\\times89\.895\.884\.378\.290\.383\.998\.176\.061\.389\.2✓×\\times×\\times✓✓✓89\.296\.583\.277\.889\.285\.297\.577\.663\.390\.1✓✓✓✓×\\times×\\times90\.496\.685\.478\.691\.484\.698\.276\.862\.389\.6✓✓✓✓×\\times✓89\.896\.684\.079\.289\.787\.297\.380\.066\.791\.4✓✓✓✓✓×\\times89\.295\.283\.277\.889\.283\.998\.076\.061\.389\.2✓✓✓✓✓✓90\.496\.785\.478\.691\.483\.998\.176\.061\.389\.2

Table[IV](https://arxiv.org/html/2609.16058#S6.T4)details Stage 2 input ablations using the optimal Stage 1 setup\. The best performance occurs when using all inputs except age, which minimizes all primary tracking and terminal errors \(εdf\\varepsilon\_\{d\_\{f\}\},εvf\\varepsilon\_\{v\_\{f\}\}\)\. Notably, ablating the Stage 1 decision increases acceleration error by up to 2\.6×\\times, demonstrating the transformer’s inability to isolate driver intention independently and validating our two\-stage approach\. Stop\-band success peaks under two configurations, including the full model\.

TABLE IV:Stage 2 input\-modality ablation on the stratified split\. Allε\\varepsilon\-metrics are MAE values in corresponding physical units\. Lower is better forε\\varepsilon\-metrics and higher is better forρstop−band\\rho\_\{\\mathrm\{stop\-band\}\}\. Bold values denote the best values columns\.Input featuresValidation metricsVtV\_\{t\} DtD\_\{t\} TTI ar​e​qa\_\{req\} Age y^\\hat\{y\} pg​op\_\{go\} εa⁡\(⋅\)\\varepsilon\_\{a\(\\cdot\)\}εv⁡\(⋅\)\\varepsilon\_\{v\(\\cdot\)\}εd⁡\(⋅\)\\varepsilon\_\{d\(\\cdot\)\}εdf\\varepsilon\_\{d\_\{f\}\}εvf\\varepsilon\_\{v\_\{f\}\}ρstop−band\\rho\_\{\\mathrm\{stop\-band\}\}✓\\checkmark✓\\checkmark×\\times×\\times×\\times×\\times×\\times1\.150\.801\.151\.541\.5394\.55✓\\checkmark✓\\checkmark×\\times✓\\checkmark×\\times×\\times×\\times1\.330\.891\.231\.441\.6596\.36×\\times×\\times✓\\checkmark✓\\checkmark✓\\checkmark×\\times×\\times1\.341\.011\.331\.701\.63100\.00✓\\checkmark✓\\checkmark✓\\checkmark✓\\checkmark×\\times×\\times×\\times0\.960\.912\.423\.131\.7069\.09×\\times×\\times✓\\checkmark✓\\checkmark×\\times✓\\checkmark×\\times0\.510\.410\.760\.980\.4599\.09✓\\checkmark✓\\checkmark✓\\checkmark✓\\checkmark✓\\checkmark×\\times×\\times1\.310\.840\.841\.411\.6799\.09✓\\checkmark✓\\checkmark✓\\checkmark×\\times✓\\checkmark✓\\checkmark×\\times0\.510\.551\.271\.410\.5198\.18✓\\checkmark✓\\checkmark×\\times×\\times✓\\checkmark✓\\checkmark✓\\checkmark0\.510\.551\.271\.350\.5199\.09✓\\checkmark✓\\checkmark✓\\checkmark✓\\checkmark✓\\checkmark✓\\checkmark×\\times0\.520\.410\.670\.890\.4599\.09✓\\checkmark✓\\checkmark✓\\checkmark✓\\checkmark×\\times✓\\checkmark✓\\checkmark0\.490\.370\.620\.920\.3995\.45✓\\checkmark✓\\checkmark✓\\checkmark✓\\checkmark✓\\checkmark✓\\checkmark✓\\checkmark0\.510\.430\.750\.910\.45100\.00

Figure[7](https://arxiv.org/html/2609.16058#S6.F7)supports these findings qualitatively\. Predicted accelerations are smoother because of jerk regularization while preserving the dominant two\-stage human\-like stop pattern\. Stop examples keep low positivedfd\_\{f\}values, which means final stopping positions remain before and close to the stop line in most cases\.

Fig\. 7:Twelve trajectory estimation examples \(rows 1–2 stop and row 3 go\)\. Each panel shows predicted and measured acceleration and distance trajectories in physical time with panel\-level TTI,vo​n​s​e​tv\_\{onset\},areqa\_\{\\mathrm\{req\}\}, acceleration MAE, and outcome annotationsdfd\_\{f\}for stop andvfv\_\{f\}for go\.
## VIIDiscussion and Outlook

Compared with camera\-based data collection approaches, our study uses an RTK\-GNSS\-based measurement setup that provides substantially higher positioning accuracy and enables precise correlation of multi\-level acceleration\-induced comfort with each stopping trajectory\. To further increase scenario diversity, the dataset can be extended with additional contextual factors such as the presence and distance of a following vehicle, pedestrians at the crosswalk, and variations in lighting and weather conditions\. The current dataset is collected in Germany and primarily includes drivers holding German driving licenses\. Driving habits, stopping strategies, and comfort perception may differ across countries and traffic cultures, particularly outside Europe\. Cross\-region data collection is therefore important for evaluating model generalization and behavioral variability\. Another relevant direction is the study of passenger comfort during stopping maneuvers\. Since passengers do not control the vehicle, perceived braking discomfort and physiological response may differ substantially from the driver’s perspective\. Incorporating passenger\-side measurements could improve the design of human\-centered automated braking systems\.

## VIIIConclusion

We developed a high\-precision experimental setup in which traffic light timing is triggered from RTK\-corrected vehicle position\. This allows accurate and repeatable yellow\-onset generation\. Using this setup, we collected a real\-world dataset containing vehicle kinematics, braking\-comfort ratings, and physiological responses from human drivers\. Based on this dataset, we proposed a two\-stage decision\-conditioned autoregressive Transformer that predicts the stop/go decision and generates the full longitudinal trajectory from a single yellow\-onset observation\. The model achieves an acceleration MAE of0\.49​m/s20\.49~\\mathrm\{m/s^\{2\}\}and a distance\-trajectory MAE of0\.62​m0\.62~\\mathrm\{m\}while maintaining high stop\-band success with accurate final stopping positions\.

The learned trajectories additionally allow estimation of future braking stress from onset\-level kinematics alone\. The results indicate that both maneuver intent and comfort\-related braking behavior can be predicted early and support predictive intersection safety systems and infrastructure\-assisted driver support\.

## Acknowledgment

This work was supported by the KIT Future Fields Wild Ideas project “WildRobot”, the Helmholtz program Engineering Digital Futures \(EDF\), and the ELLIIT Excellence Center\. The authors gratefully acknowledge the support of Stadtmobil CarSharing GmbH, Karlsruhe\.

## References

- \[1\]B\. Xu, X\. J\. Ban, Y\. Bian, J\. Wang, and K\. Li\(2017\)V2I based cooperation between traffic signal and approaching automated vehicles\.In2017 IEEE Intelligent Vehicles Symposium \(IV\),pp\. 1658–1664\.Cited by:[§I](https://arxiv.org/html/2609.16058#S1.p2.1)\.
- \[2\]A\. Vaswani, N\. Shazeer, N\. Parmar, J\. Uszkoreit, L\. Jones, A\. N\. Gomez, Ł\. Kaiser, and I\. Polosukhin\(2017\)Attention is all you need\.Advances in neural information processing systems30\.Cited by:[§I](https://arxiv.org/html/2609.16058#S1.p3.1),[§II](https://arxiv.org/html/2609.16058#S2.p4.1),[§V\-B2](https://arxiv.org/html/2609.16058#S5.SS2.SSS2.p1.1)\.
- \[3\]S\. Carlowitz, R\. Madigan, C\. M\. Goodridge, J\. Hilz, C\. Marberger, P\. Alt, M\. Schulz, S\. Osswalt, A\. Engeln, and N\. Merat\(2026\)Balancing comfort and efficiency: optimal deceleration rates at crosswalks and intersections in automated driving\.Transportation Research Part F: Traffic Psychology and Behaviour116,pp\. 103289\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p1.1)\.
- \[4\]P\. Wang, L\. Wang, Y\. Li, and W\. Guo\(2015\)Improved cooperative collision avoidance \(cca\) model considering driver comfort\.International Journal of Automotive Technology16\(6\),pp\. 989–996\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p1.1)\.
- \[5\]I\. El\-Shawarby, H\. Rakha, V\. W\. Inman, and G\. W\. Davis\(2007\)Evaluation of driver deceleration behavior at signalized intersections\.Transportation Research Record2018\(1\),pp\. 29–35\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[6\]I\. El\-Shawarby, H\. Rakha, A\. Amer, and C\. McGhee\(2011\)Impact of driver and surrounding traffic on vehicle deceleration behavior at onset of yellow indication\.Transportation research record2248\(1\),pp\. 10–20\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[7\]J\. K\. Caird, S\. Chisholm, C\. J\. Edwards, and J\. I\. Creaser\(2007\)The effect of yellow light onset time on older and younger drivers’ perception response time \(prt\) and intersection behavior\.Transportation research part F: traffic psychology and behaviour10\(5\),pp\. 383–396\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[8\]P\. Papaioannou\(2007\)Driver behaviour, dilemma zone and safety effects at urban signalised intersections in greece\.Accident Analysis & Prevention39\(1\),pp\. 147–158\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[9\]J\. Li, X\. Jia, and C\. Shao\(2016\)Predicting driver behavior during the yellow interval using video surveillance\.International journal of environmental research and public health13\(12\),pp\. 1213\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[10\]D\. S\. Hurwitz, H\. Wang, M\. A\. Knodler Jr, D\. Ni, and D\. Moore\(2012\)Fuzzy sets to describe driver behavior in the dilemma zone of high\-speed signalized intersections\.Transportation research part F: traffic psychology and behaviour15\(2\),pp\. 132–143\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[11\]M\. Masoud\(2024\)Machine learning\-based modeling of celeration for predicting red\-light violations\.IEEE Open Journal of Intelligent Transportation Systems5,pp\. 608–616\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[12\]A\. Jahangiri, H\. A\. Rakha, and T\. A\. Dingus\(2015\)Adopting machine learning methods to predict red\-light running violations\.In2015 IEEE 18th international conference on intelligent transportation systems,pp\. 650–655\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[13\]M\. Elhenawy, A\. Jahangiri, H\. A\. Rakha, and I\. El\-Shawarby\(2015\)Modeling driver stop/run behavior at the onset of a yellow indication considering driver run tendency and roadway surface conditions\.Accident Analysis & Prevention83,pp\. 90–100\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[14\]N\. Elmitiny, X\. Yan, E\. Radwan, C\. Russo, and D\. Nashar\(2010\)Classification analysis of driver’s stop/go decision and red\-light running violation\.Accident Analysis & Prevention42\(1\),pp\. 101–111\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[15\]A\. Amer, H\. Rakha, and I\. El\-Shawarby\(2011\)Agent\-based behavioral modeling framework of driver behavior at the onset of yellow indication at signalized intersections\.InInternational IEEE Conference on Intelligent Transportation Systems \(ITSC\),pp\. 1809–1814\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[16\]A\. Sharma, D\. Bullock, and S\. Peeta\(2011\)Estimating dilemma zone hazard function at high speed isolated intersection\.Transportation research part C: emerging technologies19\(3\),pp\. 400–412\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[17\]S\. Biswas and I\. Ghosh\(2020\)Reliability modelling on drivers’ decision during the yellow phase of a signal intersection\.Current Science118\(4\),pp\. 654–661\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[18\]Y\. Ma, Z\. Xie, W\. Li, and S\. Chen\(2023\)Modeling driving styles of online ride\-hailing drivers with model identifiability and interpretability\.Travel Behaviour and Society33,pp\. 100645\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[19\]W\. Qi, B\. Shen, Y\. Yang, and X\. Qu\(2021\)Modeling drivers’ scrambling behavior in china: an application of theory of planned behavior\.Travel Behaviour and Society24,pp\. 164–171\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p2.1)\.
- \[20\]Y\. Xu, W\. Shao, J\. Li, K\. Yang, W\. Wang, H\. Huang, C\. Lv, and H\. Wang\(2022\)SIND: a drone dataset at signalized intersection in china\.arXiv preprint arXiv:2209\.02297\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p3.1)\.
- \[21\]F\. Campolo, A\. Blaga, M\. Rea, A\. Lozano, and X\. Costa\-Pérez\(2024\)5GNSS: fusion of 5g\-nr and gnss localization for enhanced positioning accuracy and reliability\.IEEE Transactions on Vehicular Technology73\(9\),pp\. 13558–13568\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p3.1)\.
- \[22\]A\. Calvi, F\. D’Amico, C\. Ferrante, and C\. Petrella\(2022\)To stop, or not to stop, that it the dilemma: evaluating the effects of safety countermeasures at signalized intersections during the yellow phase\.Human Factors in Transportation60,pp\. 476–485\.Cited by:[§II](https://arxiv.org/html/2609.16058#S2.p3.1)\.
- \[23\]VBOX Touch RTK gnss data logger\.Note:Online product pageRacelogic Ltd\., UK\. Centimetre\-level RTK GNSS, 10 Hz velocity and position loggingExternal Links:[Link](https://www.vboxautomotive.co.uk/index.php/en/products/data-loggers/vbtouch)Cited by:[§III\-B](https://arxiv.org/html/2609.16058#S3.SS2.p1.1)\.

Similar Articles

A Graph-Based Control Interface for Traffic Signals on Heterogeneous Road Networks

arXiv cs.LG

This paper presents a graph-based traffic signal control interface using a shared graph neural network to assign scores to movements, with deterministic phase construction via incidence matrices. Experiments evaluate transfer across synthetic and city road networks, showing feasibility but sensitivity to distribution shifts.