Skip to main content
Journal of Eye Movement Research logoLink to Journal of Eye Movement Research
. 2026 Jun 1;19(3):59. doi: 10.3390/jemr19030059

Active Vision in Driving: Joint Modeling of Scanpaths and Risk Perception

Chao Gou 1, Yueyao Lin 1, Yuchen Zhou 1, Wenjie Shi 1, Jincheng Jiang 1,*
Editor: Alexander Maedche1
PMCID: PMC13301845  PMID: 42346319

Abstract

Under the Active Vision hypothesis, eye movements are not passive responses to visual stimuli but are actively guided by task demands and internal goals. In driving, scanpaths may therefore reflect an ongoing process of information sampling for risk assessment. However, current computational models often isolate scanpath prediction from risk assessment, overlooking their intrinsic cognitive coupling. In this study, we investigate whether driver scanpaths and traffic risk perception can be jointly modeled within a unified framework. We propose a computational approach based on the introduced Adversarial Inverse Reinforcement Learning (AIRL), where gaze behavior is interpreted as a policy that maximizes a latent safety-related reward. By employing a generator to simulate human-like sequences of fixations and saccades, and a discriminator to approximate the internal reward signal, our framework ensures that generated scanpaths synergistically inform downstream risk perception. To facilitate this research, we constructed the BDDA dataset, aggregating over 13,000 spatio-temporal gaze points with explicit risk annotations to study this joint mechanism. Experimental results indicate that simultaneously modeling the “where” (scanpath dynamics) and the “why” (risk perception) significantly outperforms the compared baseline methods on the proposed BDDA dataset. These findings provide computational evidence for a functional coupling between visual attention and risk perception, supporting the view that eye movements serve as an active mechanism for acquiring task-relevant information in safety-critical environments.

Keywords: driver scanpath prediction, active vision, visual search, traffic risk perception, adversarial inverse reinforcement learning

1. Introduction

A driver’s scanpath, the sequence of fixations and saccades deployed while navigating traffic, offers a direct window into the cognitive process underlying complex decision-making. It reveals a driver’s focus, information prioritization, and preparedness for evolving situations. Consequently, accurately modeling and predicting these scanpaths is a critical pursuit, holding immense promise for quantifying scene-induced visual load [1], developing proactive safety interventions, and designing more intuitive autonomous vehicles that align with human expectations [2].

Early investigations into driver attention primarily focused on saliency prediction [3,4], which failed to capture the intricate spatio-temporal dependencies of human gaze. More recent data-driven approaches using architectures like LSTMs and Transformers have shown greater promise in learning sequential patterns from large-scale gaze data [5,6,7,8]. However, they still face persistent challenges, including limitations in long-term prediction accuracy, poor generalization across diverse driving contexts, and ineffective integration of multi-modal information such as vehicle dynamics and semantic scene understanding. Crucially, these limitations stem from a fundamental theoretical flaw: existing models often treat gaze as a passive reaction to visual stimuli (bottom-up saliency), failing to account for the active, goal-directed nature of human vision, where attentional resources are allocated based on internal cognitive states rather than just pixel-level features.

This theoretical oversight manifests most acutely in the prevailing single-task paradigm. From a cognitive perspective, treating scanpath prediction and risk assessment as isolated tasks creates an artificial dichotomy. According to Active Vision theory, perception is not merely about observing the scene but is actively sampled to serve a downstream task. Consequently, a driver’s attentional allocation is not random; it is intrinsically linked to their continuous assessment of potential hazards and risks. As illustrated in Figure 1, this cognitive process, reflected in their scanpaths, provides substantial evidence for traffic risk assessment. While deep learning approaches for risk assessment are rapidly expanding [9,10,11,12], the potential of jointly modeling scanpath prediction and risk perception simultaneously remains largely unexploited.

Figure 1.

Figure 1

The driver’s scanpath is represented by circles progressing from yellow (initial fixation) to red (final fixation), where larger radii indicate longer fixation durations. It reflects the cognitive process underlying traffic scene perception. In safety-critical scenarios, spatio-temporal modeling of such eye movements contributes to rapid risk assessment.

In this work, we investigate whether scanpath generation and risk perception can be jointly modeled within a unified computational framework. We propose an approach based on Adversarial Inverse Reinforcement Learning (AIRL), in which gaze behavior is modeled as a policy that maximizes a latent safety-related reward. Within this framework, scanpaths are not only predicted as behavioral outputs but also serve as structured inputs for risk estimation. Our proposed framework focuses on learning not only where a driver will look, but also why, by jointly modeling their visual search strategy and their implicit evaluation of risk. To the best of our knowledge, this is the first attempt to unify scanpath prediction and risk perception within an adversarial reinforcement learning paradigm, explicitly capturing the cognitive dependency between where we look and how we perceive danger. The main contributions of this work are threefold:

  • A Novel AIRL-based Framework: We propose a generative model that integrates inverse reinforcement learning with adversarial strategies to simulate the “active” nature of driver attention, incorporating top-down task objectives alongside bottom-up visual cues.

  • Cognitive Risk Assessment: We introduce a multi-task Transformer that models risk not as a static classification, but as a dynamic outcome of the active visual search process, mirroring how humans accumulate evidence to determine safety.

  • Ecological Validation with the BDDA Dataset: We present the BDDA dataset, a benchmark designed to test the ecological validity of attention models in safety-critical scenarios. Our framework demonstrates superior performance on this benchmark, confirming that explicit modeling of the cognitive link between attention and risk yields more accurate and human-like predictions.

2. Related Works

2.1. Review of Scanpath Modeling

Early eye movement modeling primarily predicted saliency maps to represent attentional distribution. However, these static heatmaps often overlook the temporal dependencies of vision, i.e., the sequential order in which regions of interest are fixated. Modeling scanpaths is therefore essential for understanding the dynamic nature of human vision. Scanpath modeling generally follows two paradigms: bottom-up and top-down. Bottom-up approaches emphasize the intrinsic attributes of visual stimuli, such as color and shape, which automatically attract attention. Yet, these methods often fail to account for the impact of prior knowledge, context, and specific task requirements on attentional allocation. In contrast, top-down approaches posit that observers allocate attention based on specific goals, such as visual search or visual question answering (VQA).

While early studies utilized mathematical modeling and traditional machine learning to predict free-viewing scanpaths [13,14], the emergence of Convolutional Neural Network (CNN) and Recurrent Neural Network (RNN)-based architectures enabled more effective extraction of spatial features [15,16] and the capturing of long-range temporal dependencies [17,18,19,20]. With the evolution of deep learning, Transformer-based architectures have been introduced to model complex spatial layouts and dynamic mappings. Mondal et al. [21] achieve efficient and stable visual search on the COCO-Search18 dataset using Gazeformer, while Xue et al. [22] proposed a few-shot personalized model that enables adaptation to unseen subjects with minimal support data.

Furthermore, to simulate the interaction between an observer and their environment, Reinforcement Learning (RL) and Inverse Reinforcement Learning (IRL) have been applied to recover the latent reward functions governing gaze policy. Yang et al. [23] modeled viewers’ internal belief states as dynamic contextual belief maps of object locations, which were used to predict human-like target search scanpaths. Huang et al. [24] were the first to apply IRL to traffic scenarios, predicting human scanpaths across different driving tasks through adversarial learning. More recently, diffusion models have been employed to capture the high stochasticity and individual variability inherent in human eye movements [25,26,27]. Despite these advancements, most existing methods treat scanpath prediction as an isolated perceptual task. They overlook the intrinsic cognitive coupling between oculomotor behavior and high-level goals, such as risk perception and safety decision-making in traffic scenarios. Our work addresses this gap by unifying scanpath planning and risk assessment within a single computational framework.

2.2. Review of Traffic Risk Assessment

Traffic risk assessment is a fundamental component of intelligent driving systems, aiming to quantify potential hazards and provide a computational basis for safety-critical decision-making. Traditional traffic risk assessment methods typically rely on the physical attributes of roads, vehicles, and the environment, such as vehicle speed, space headway, road conditions, and traffic signals [28,29,30]. Early kinematic indicators like Time-to-Collision (TTC) were widely adopted to identify immediate collision threats based on direct physical distance measurements. However, these traditional methods often struggle with the high complexity, non-linearity, and high dynamics of real-world traffic scenes.

State-of-the-art models have evolved to represent traffic risk as a dynamic outcome of participant interactions. Rather than treating objects in isolation, these frameworks utilize RNNs and Graph Convolutional Networks (GCNs) to model the evolving relational features within the traffic scene. Agarwal et al. [31] introduced a lightweight framework that integrates GNN and long short-term memory (LSTM) layers to embed spatiotemporal scene graphs for efficient and early collision prediction on edge hardware. While previous models focused on visible agent interactions, Wang et al. [32] introduced GSC, a framework that explicitly accounts for occluded agents through graph convolution operations and a novel dynamic adjacency matrix derived from historical trajectories. Song et al. [33] combined global context-enhanced GNNs with temporal attention to identify critical interactions leading to accidents. To bridge the gap between deterministic modeling and behavioral uncertainty, Liu et al. [34] introduced a field-theoretic model that captures multi-agent interactions via interaction fields and probabilistic motion distributions, enabling adaptive risk prediction in long-tail scenarios. Furthermore, some methods like CPTR-LLM [35] employed Large Language Models and a chain-of-thought framework to achieve high-accuracy collision prediction and comprehensive takeover requirement analysis, offering a more cognitive and interpretable approach to road safety. Nevertheless, the aforementioned methods tend to rely on passive feature extraction from the entire visual scene, often overlooking the explicit modeling of the driver’s cognitive process, specifically the active and goal-directed acquisition of safety-critical information. Our framework addresses this critical gap by internalizing the human visual foraging mechanism, where scanpath serves as a high-fidelity information filter to guide the risk perception.

3. Method

3.1. Cognitive Architecture Overview

Our proposed computational framework, shown in Figure 2, is designed to implement the Active Vision hypothesis in driving scenarios. Unlike traditional single-task models, this multi-task learning framework jointly predicts drivers’ scanpaths and assesses traffic risk. The framework simulates three stages of driver cognition:

  • Perception-Goal Integration: Visual stimuli (Fimage) and top-down task instructions (Ftask) are encoded and fused into a unified cognitive state representation Fjoint, mimicking the brain’s integration of bottom-up cues and top-down goals.

  • AIRL for Scanpath Prediction: Based on the AIRL paradigm, the model learns a sequential policy to generate scanpaths. Here, the generator acts as the driver’s gaze planner, while the discriminator approximates the driver’s internal safety reward function.

  • Information-Based Risk Perception: The predicted scanpath Si is not only as a final output but also as an information-gathering process. It is fed into a Transformer-based encoder along with scene features to compute the probability of traffic risk, reflecting how visual attention serves the downstream goal of safe driving.

Figure 2.

Figure 2

The overview of our cognitive architecture. Semantic features Fimage from driving scenes and textual features Ftask of driving tasks yield Fjoint, processed by the AIRL module to derive driver gaze pattern Si, and jointly encoded via a Transformer-based encoder for traffic risk perception. Regarding the latent reward, for instance, the sudden appearance of a pedestrian leads to high saliency in the regions corresponding to this safety-critical object. Consequently, the model receives a higher reward when a predicted fixation aligns with these areas.

3.2. Scanpath Prediction

The fused representation Fjoint serves as the driver’s integrated cognitive state, synthesizing bottom-up environmental semantics with top-down task goals. This state is provided to the AIRL framework, where the objective is to generate a sequence of fixations along with their corresponding durations. It reflects how drivers actively sample the driving scenario to maximize information gain under safety constraints.

3.2.1. Generator

The generator G serves as the computational model of the driver’s visual search policy π(a,t|S). Instead of passively processing pixels, it acts as an active agent that sequentially decides the next fixation a and its duration t based on the current cognitive state S.

Inspired by [23], the state S consists of a saliency map and a fixation-duration mask map.

St=Lift=0,Mt⊙H+1−Mt⊙Ft−1otherwise. (1)

The high-resolution attention map H corresponds to the ground-truth attention map, while the low-resolution attention map L is obtained by downsampling H. Ft and Mt denote the fovea vision and fixation-duration mask at tth time step, respectively. The state St is updated after each selection of a fixation.

The generator G predicts a sequence of gaze points ((X^i,Y^i,t^i))i=1n, where each point corresponds to a state-action pair. G aims to maximize the cumulative reward R(S,a) provided by the discriminator D. Its loss function LG is defined as follows:

LG=−Eg[R(S,a)], (2)
R(S,a)=log(D(S,a)), (3)

where Eg denotes the expectation based on the sampling from G.

3.2.2. Discriminator

The discriminator D, implemented as a CNN, distinguishes between real driver scanpaths and those generated by G. It estimates the probability D(S,a) that a pair (S,a) originates from the real data distribution. D is optimized by minimizing the following cross-entropy loss:

LD=−Er[logD(S,a)]−Eg[log(1−D(S,a))], (4)

where Er represents the expectation of sampling from real data.

3.3. Traffic Risk Perception

Upon obtaining the predicted driver scanpath Si (i stands for the i-th driving image), A Transformer-based module combines it with Fjoint to conduct the final traffic risk assessment. This step models traffic risk assessment not as a static classification, but as a dynamic process where risk perception emerges from the accumulation of visual cues.

3.3.1. Feature Fusion & Encoding

To mimic the brain’s integration of “where” (scanpath) and “why” (risk perception) pathways, we employ a specialized encoding scheme. For each driving frame, Si is normalized by Layer Normalization (LN) to obtain Si′. A classification token Sclass is appended to aggregate global sequence information and yield a fixed-dimensional representation within the Transformer-based encoder.

Crucially, we incorporate positional encoding Epos to capture the temporal relationships in gaze behavior. This is essential because, in cognitive terms, the order of information acquisition (e.g., seeing a car before it brakes vs. after) fundamentally alters risk interpretation. The input Iinit to the Transformer encoder represents the content of the driver’s visual working memory:

Iinit=Sclass;S1′;S2′;…;SN′+Epos, (5)

where N denotes the number of frames corresponding to each video. Each video frame corresponds to a scanpath.

The scanpath is embedded into a Lyr-layers Transformer encoder, where each layer l consists of the multi-head self-attention (MSA) mechanism and Multilayer Perceptron (MLP). The outputs of the MSA module IMSAl and the MLP module IMLPl are given below:

IMSAl=MSALNIMLPl−1+IMLPl−1, (6)
IMLPl=MLPLNIMSAl+IMSAl. (7)

The final output of Transformer Encoder is defined as:

ILyr=IMLPLyr=MLPLNIMSALyr+MSALNIMLPLyr−1+IMLPLyr−1. (8)

3.3.2. Risk Assessment

The final stage is information-based risk perception. The token vector for classification ILyr0 in ILyr serves as a holistic representation of the driving scenario and is fed into an MLP classifier with a softmax activation function to estimate the probability of traffic risk.

The downstream task of traffic risk perception is optimized using cross-entropy loss. The corresponding loss function is defined as follows:

Laccident=−∑i=12yilogP(y=i∣I),i∈{0,1}. (9)

A scenario is labeled as safe when i=0, and as risky when i=1.

In summary, the overall loss function of the proposed method is:

Lloss=LG+LD+Laccident. (10)

4. Experiments

4.1. Dataset

To the best of our knowledge, no public dataset currently integrates spatio-temporal driver eye movements with explicit traffic risk annotations. To bridge this gap, we introduce BDDA, a novel benchmark comprising 1474 class-balanced frames and over 13,000 gaze points. The dataset aggregates risky scenarios from DADA-Diverse [36] and safe scenarios from BDDX-Diverse [37]. To ensure cognitive fidelity, volunteers were instructed to imagine themselves performing real driving under specific task constraints (e.g., accelerate, turn right and go straight). Data collection employed rigorous methodologies to ensure diversity, involving 5 annotators per frame for risky scenarios and over 6 annotators per frame for safe scenarios. Crucially, this dataset captures gaze dynamics across varying risk levels, providing a rigorous basis for analyzing the coupling between visual search and risk perception.

4.2. Implementation Details

We resize input images to 512×320 and set the patch size to 16×16. The length of the scanpath is 5. The number of layers for both G’s Transformer encoder and decoder is set to 6. We optimize the model using AdamW with disjoint parameter groups (inspired by [21]). Specifically, the learning rates are set to 5×10−7 1×10−6, and 5×10−5 for the encoder head, duration head, and decoder heads, respectively. We use a batch size of 32 and train the model for 400 epochs. The entire model is trained on an NVIDIA RTX3090Ti GPU. We employ the widely recognized ScanMatch [38] and MultiMatch [39] as evaluation metrics to measure the similarity between the model’s predicted scanpaths and the drivers’ ground-truth scanpaths. For the traffic risk perception task, we employ the commonly used Accuracy (ACC), the Area Under the Curve (AUC), and the F1-score to compare the performance of different models.

4.3. Quantitative Analysis

We first evaluate the biological fidelity of the generated scanpaths using the BDDA benchmark. As shown in Table 1, our proposed AIRL-based framework achieves superior performance across nearly all metrics compared to state-of-the-art baselines. In particular, on the ScanMatch metric, which evaluates the spatio-temporal alignment between the predicted and ground-truth gaze sequences, our method scores 0.414 (w/o Dur) and 0.375 (w/ Dur). This represents a substantial improvement of nearly 10% compared to the strongest baseline (Gazeformer). From a cognitive perspective, this indicates that our model does not merely memorize static saliency maps but successfully captures the sequential decision-making process of human vision.

Table 1.

Comparative results of scanpath prediction on the BDDA dataset. Bold shows the best performance.

Method ScanMatch MultiMatch
w/o Dur↑ w/ Dur↑ Vector↑ Direction↑ Length↑ Position↑ Duration↑
PathGAN [40] 0.053 0.046 0.872 0.650 0.867 0.401 0.627
IOR-ROI [17] 0.229 0.227 0.821 0.735 0.802 0.648 0.615
Chen et al. [18] 0.316 0.282 0.889 0.731 0.824 0.709 0.631
Gazeformer [21] 0.374 0.317 0.891 0.744 0.832 0.794 0.621
ScanDMM [41] 0.301 - 0.810 0.613 0.709 0.760 -
SEA [24] 0.318 - 0.893 0.655 0.855 0.834 -
Ours 0.414 0.375 0.914 0.749 0.889 0.762 0.655

Results on MultiMatch metrics further reveal the source of this advantage. Our model achieves the highest scores in Vector (0.914) and Direction (0.749). As these metrics are particularly sensitive to saccadic dynamics, the results suggest that our model effectively reproduces human visual orienting mechanisms—capturing not only “where” to gaze, but also “how” attention shifts in response to dynamic driving scenarios. In contrast, baseline models like ScanDMM rely on probabilistic state transitions to model gaze dynamics. While effective for free-viewing, they lack an explicit internal reward mechanism to encode specific driving goals. Consequently, they often fail to capture the precise, task-driven directional shifts required for safety, leading to more dispersed or uncertain gaze patterns, as evidenced by the drifting scanpaths in Figure 3.

Figure 3.

Figure 3

Visualization comparison of scanpaths predicted by different models. The scanpath is represented by circles progressing from yellow (initial fixation) to red (final fixation), where larger radii indicate longer fixation durations.

4.4. Qualitative Behavioral Analysis

To understand the cognitive plausibility of our model in real-world settings, we visualize the predicted scanpaths in safety-critical scenarios (Figure 3). A striking example is observed in the “Turn Right” task. The ground-truth scanpath (Human) exhibits a clear goal-directed attention strategy: the driver ignores the salient buildings in the center and rapidly foveates on the cyclist and pedestrians crossing from the right.

Baseline models (e.g., Gazeformer, ScanDMM) often succumb to bottom-up saliency, gazing at the high-contrast central road or background clutter, failing to account for the task constraint. In contrast, our model successfully replicates the human top-down modulation. Driven by the learned latent reward function, it directs attention towards the task-relevant elements (the cyclist) on the periphery. This qualitative alignment confirms that our AIRL framework has internalized the concept of risk-aware visual search. It prioritizes semantically meaningful threats such as cyclists or crossing pedestrians over visually salient distractions. By explicitly gathering visual evidence of these specific hazards, the generated scanpaths effectively serve the downstream goal of risk assessment. This functional equivalence strongly validates the cognitive plausibility of the Active Vision hypothesis.

4.5. The Coupling of Attention and Risk Perception

We investigate whether this improved scanpath modeling leads to better risk understanding. As detailed in Table 2, our unified framework achieves superior performance on the proposed benchmark in traffic risk assessment, with an ACC of 0.883 and an AUC of 0.912. Notably, our method outperforms models that do not explicitly model eye movements (e.g., DRIVE, DSTA) by significant margins (∼17% and ∼9%, respectively). This empirical evidence strongly supports the Active Vision hypothesis: accurate risk perception is contingent upon the active sampling of relevant visual information. Furthermore, compared to THAT-Net, which uses a more complex network but lacks our explicit scanpath-risk coupling, we still achieve a ∼2% improvement in accuracy. This reinforces the idea that a selective attentional bottleneck is crucial: by enforcing the model to look at “human-like” regions, we effectively filter out noise and provide the risk assessment module with high-fidelity and evidence-based visual representations.

Table 2.

Comparative results of traffic risk perception incorporating spatio-temporal modeling of eye movement mechanisms (scanpaths). Bold shows the best performance.

Method ACC↑ AUC↑ F1↑
DRIVE [42] 0.716 0.745 0.705
DSTA [43] 0.793 0.816 0.788
THAT-Net [44] 0.869 0.890 0.860
DAA-GNN [33] 0.835 0.847 0.838
Ours 0.883 0.912 0.879

4.6. Ablation Study

To assess the effectiveness of the proposed modules, we conduct the ablation study to examine the contribution of each feature to the model’s performance.

We first investigate the impact of components Fimage, Ftask, and Si on the performance of the traffic risk perception method (Table 3). Removing semantic features Fimage or textual task features Ftask results in moderate performance drops (ACC decreases by ∼2.2% and ∼2.4%, respectively). This suggests that while bottom-up visual cues and top-down task instructions provide the necessary context, they are insufficient on their own to fully explain driver behavior.

Table 3.

Effect of different features on performance for traffic risk perception. Bold shows the best performance.

Method ACC↑ AUC↑ F1↑
w/o semantic feature 0.861 0.881 0.852
w/o textual feature 0.859 0.878 0.850
w/o scanpath information 0.835 0.869 0.828
full features 0.883 0.912 0.879

Crucially, Si proves to be the most influential feature, the absence of scanpath information leads to a sharp decline in ACC (0.883 → 0.835, a ∼5% drop) and F1-score (0.879 → 0.828). It indicates that gaze behavior acts as a critical information bottleneck. Without the explicit guidance of “where” the driver is looking, the risk perception module is forced to process the entire visual scene uniformly, likely becoming overwhelmed by irrelevant visual noise. The integration of spatio-temporal eye movement mechanisms allows the model to selectively attend to safety-critical regions, thereby constructing a more accurate and efficient representation of risk.

Having established that looking is essential for risk assessment, we further ask: does the quality of the visual search policy matter? To answer this, we replace our AIRL-based generator with other state-of-the-art scanpath prediction models and evaluate how well their generated scanpaths support downstream risk perception.

Table 4 reveals a clear correlation between the behavioral fidelity of the scanpath and the accuracy of risk perception. Stochastic or purely saliency-based models, such as PathGAN (ACC 0.677), yield significantly lower performance. This is likely because these models are designed primarily for free-viewing tasks and fail to capture the highly goal-directed nature of driving. Their generated gaze patterns tend to be dispersed, failing to provide the “evidence” needed for risk evaluation.

Table 4.

Effect of scanpath modeling approaches on performance for traffic risk perception. Bold shows the best performance.

Method ACC↑ AUC↑ F1↑
PathGAN [40] 0.677 0.693 0.670
IOR-ROI [17] 0.809 0.814 0.794
Chen et al. [18] 0.812 0.839 0.804
Gazeformer [21] 0.854 0.870 0.849
ScanDMM [41] 0.754 0.772 0.750
SEA [24] 0.768 0.776 0.763
Ours 0.883 0.912 0.879

Goal-oriented models like Gazeformer achieve respectable performance (ACC 0.854), confirming that incorporating task constraints is beneficial. However, our proposed AIRL framework still outperforms all baselines (ACC 0.883), achieving an improvement of approximately 2% over the strongest competitor. This superiority can be attributed to the Inverse Reinforcement Learning paradigm. Our approach recovers the driver’s latent reward function, i.e., the internal valuation of safety. This allows our model to generate scanpaths that are not just geometrically similar to human data but functionally equivalent in their ability to sample risk-relevant information.

4.7. Practical Efficiency Analysis

To evaluate the feasibility of deploying our model in real intelligent driving systems, we analyze its computational cost and theoretical real-time efficiency. Specifically, the proposed model maintains a moderate computational complexity of 23.63 GFLOPs. This restricted computational footprint significantly reduces the hardware burden, ensuring that the model can operate with high efficiency. Given that emergency braking scenarios place stringent demands on processing speeds, the lightweight nature of our architecture provides a solid foundation for real-time readiness, making it highly suitable for seamless integration into Advanced Driver Assistance Systems (ADAS) or autonomous vehicle pre-warning modules.

5. Discussion

Our results provide convincing empirical support for the Active Vision hypothesis within the domain of driving. By coupling scanpath prediction and risk perception into a unified computational framework, we demonstrate that these two processes are not merely statistically correlated but mechanistically coupled within the driver’s cognitive architecture. Visual attention, in this view, is not a passive reaction to environmental stimuli (bottom-up saliency) but an active, goal-directed information-foraging process essential for the downstream task of risk assessment. This integration suggests that the human visual system strategically samples the environment to reduce uncertainty and gather evidence that is most relevant to safety-critical decision-making.

5.1. Cognitive Plausibility of AIRL

Our framework distinguishes itself from a single Generative Adversarial Network (GAN) or Inverse Reinforcement Learning (IRL) by architecting an organic integration of the two. Why is such a hybrid architecture necessary? We consider that in a standard GAN, the discriminator acts solely as a classifier to guide distribution matching. In contrast, our generator is not trained to directly match the data distribution, but to learn a scanpath prediction policy π(a,t|S) that interacts with an evolving environmental state. This policy is optimized via reward maximization, where the learned reward is defined implicitly through the adversarial training process. This mechanism is fundamentally consistent with IRL formulations, recovering the latent reward function that governs human-like visual foraging.

The biological plausibility of our approach lies in shifting from passive saliency to active search. Our AIRL-based generator acts as an agent that sequentially plans fixations to maximize a latent reward. This mirrors the human cognitive process of strategically allocating attention to identify potential hazards. By prioritizing the scanpath generation through AIRL, we ensure that the “where” of looking reflects human-like driving goals before the information is processed for risk assessment.

5.2. The “Look-to-Percept” Bottleneck

Our findings elucidate a critical attentional bottleneck that underscores the mechanistic coupling between visual sampling and safety assessment. Under the Active Vision framework, the scanpath generated by our AIRL module functions as a high-fidelity information filter, prioritizing task-relevant stimuli over raw environmental data. This selective process aligns with the principle that human cognition avoids the prohibitive cost of processing high-dimensional visual scenes in their entirety by focusing on sparse but highly informative regions. Without the predicted scanpath, the model’s performance of risk perception drops sharply. This suggests that the “why” of risk perception (the downstream task) is fundamentally dependent on the quality of the “where” (the AIRL output).

By training the model to mimic human gaze through AIRL, we establish a meaningful order for information acquisition. This allows the risk perception module to focus on a sequence of key events, such as a pedestrian stepping out or a car’s brake lights, rather than processing the entire scene at once. This process shows that a scanpath is not just a series of eye movements, but a structured timeline of evidence. A scanpath is not merely a byproduct of vision, but a necessary cognitive support that organizes visual evidence for fast and accurate traffic risk evaluation.

5.3. Limitations and Future Work

While our integrated framework demonstrates superior performance on the BDDA benchmark by coupling scanpath prediction with risk perception, the current design has a few weaknesses that require more research. We discuss our limitations in three aspects: how the eyes work, how drivers differ, and how to close the loop between seeing and acting.

How the eyes work: While our AIRL-based generator effectively models the deployment of foveal fixations and utilizes a low-resolution map L (Equation (1)) as a preliminary multi-scale proxy for peripheral blurriness, it does not yet fully account for the critical active trigger role of peripheral vision [45]. In human cognition, peripheral vision acts as a high-sensitivity monitor for sudden-onset stimuli, which subsequently triggers the saccades predicted by our model. Future research should explore a dual-stream architecture incorporating explicit eccentricity-dependent visual processing to model the interplay between ambient and focal vision, allowing the model to simulate how a driver’s latent reward function is dynamically modulated by peripheral “bottom-up” cues in safety-critical scenarios. Additionally, transitioning from static frame processing to continuous video streams in the future will require incorporating velocity-matching control loops and different sensorimotor time scales to accurately model dynamic tracking behaviors like smooth pursuit, thereby achieving higher fidelity to real-world oculomotor behaviors.

How drivers differ: Our study is bounded to identifying generic scanpath patterns to establish a universal baseline for general driving safety, which provides essential insights into fundamental human-like risk sampling despite neglecting individual differences [7,22,46]. Real-world driving behavior is deeply influenced by personal risk tolerance and experience. For example, a novice driver may focus more on immediate lane-keeping, while an experienced driver maintains a broader search for potential hazards. Our current model does not distinguish between these different search priorities. Incorporating driver-specific priors or personalized reward functions within the AIRL paradigm could further refine the model, enhance its predictive accuracy across diverse populations and develop customized driver assistance systems.

How environments vary: While the BDDA dataset aggregates over 13,000 spatial-temporal gaze points, collecting real eye-tracking data during actual traffic accidents remains unfeasible due to strict safety and ethical constraints. Consequently, our dataset relies on an imagined driving setup under controlled conditions, which nevertheless successfully captures characteristic defensive eye movements such as rapid saccades toward potential hazards. Furthermore, although the BDDA dataset includes diverse scenarios such as night driving, the sample size for these specific conditions is currently smaller than that for day driving. Future iterations will expand data collection to include a more balanced variety of environmental conditions and driving styles to further test the robustness of the model.

How to close the loop: The current framework operates as an open-loop system. It predicts perception but does not yet execute motor control. According to the broader Active Vision hypothesis, perception and action are not separate stages but a continuous and reciprocal cycle. In a real car, eye movements are planned to facilitate specific maneuvers like braking or steering, and the results of those actions then guide where the driver looks next. A vital direction for future research involves closing this perception-action loop by integrating our cognitive model with vehicle control modules. Modeling the full cycle from active information foraging to the execution of safety maneuvers is essential for developing autonomous systems that truly align with human cognitive expectations and behavioral patterns.

6. Conclusions

In this paper, we introduced a unified framework grounded in Adversarial Inverse Reinforcement Learning to model scanpath prediction and driving risk perception simultaneously. Our approach leverages an adversarial generator to learn a human-like scanpath policy, synergistically integrated into a Transformer for risk assessment. Experiments conducted on our newly proposed BDDA benchmark demonstrate that our approach achieves superior performance on both tasks. Furthermore, our ablation studies confirm the critical role of explicit scanpath modeling in improving risk perception accuracy, confirming the Active Vision hypothesis that perception is mechanistically coupled with attentional allocation. Future work will focus on incorporating peripheral vision mechanisms, modeling individual differences in driver experience, and closing the perception-action loop by integrating this cognitive model with vehicle control modules, to further enhance the model’s contextual understanding in complex driving environments.

Author Contributions

Conceptualization, C.G., Y.L. and J.J.; Data curation, C.G., Y.L., Y.Z. and W.S.; formal analysis, C.G. and Y.L.; funding acquisition, C.G. and J.J.; investigation and methodology, C.G., Y.L. and Y.Z.; validation and visualization, Y.L. and W.S.; Writing—original draft, C.G., Y.L. and Y.Z.; writing—review and editing, W.S. and J.J. All authors have read and agreed to the published version of the manuscript.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Informed consent for participation is not required as per local legislation [Ethical Review Measures for Life Sciences and Medical Research Involving Humans, National Health Commission (NHC) et al. (jointly issued), 2023, Article 32 (1) (2)].

Data Availability Statement

The dataset used in this study aggregates risky data from DADA-Diverse [36] and safe data from BDDX-Diverse [37].

Conflicts of Interest

The authors declare no conflicts of interest.

Funding Statement

This work was supported in part by the National Natural Science Foundation of China under Grant 62373387, and in part by the Shenzhen Fundamental Research Program (Grant No. JCYJ20240813151301003).

Footnotes

Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

References

  • 1.Ni J., Shao Y., Guo Y., Gu Y. Interpretable Quantification of Scene-Induced Driver Visual Load: Linking Eye-Tracking Behavior to Road Scene Features via SHAP Analysis. J. Eye Mov. Res. 2025;18:40. doi: 10.3390/jemr18050040. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Qiao Y., Yang X., Wang J., Si T., Guo Q. Driver Cognitive Distraction Detection based on eye movement behavior and integration of multi-view space-channel feature. Expert Syst. Appl. 2025;266:125975. doi: 10.1016/j.eswa.2024.125975. [DOI] [Google Scholar]
  • 3.Kasahara I., Stent S., Park H.S. Proceedings of the ECCV. Springer; Berlin/Heidelberg, Germany: 2022. Look both ways: Self-supervising driver gaze estimation and road scene saliency; pp. 126–142. [Google Scholar]
  • 4.Sharma P.K., Chakraborty P. A review of driver gaze estimation and application in gaze behavior understanding. Eng. Appl. Artif. Intell. 2024;133:108117. doi: 10.1016/j.engappai.2024.108117. [DOI] [Google Scholar]
  • 5.Zhou Y., Tang J., Xiao X., Lin Y., Liu L., Guo Z., Fei H., Xia X., Gou C. Where, What, Why: Towards Explainable Driver Attention Prediction; Proceedings of the 2025 IEEE/CVF International Conference on Computer Vision Workshops (ICCVW); Honolulu, HI, USA. 19–20 October 2025. [Google Scholar]
  • 6.Li M., Zhu J., Huang Z., Gou C. Proceedings of the ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE; New York, NY, USA: 2024. Imitating the human visual system for scanpath predicting; pp. 3745–3749. [Google Scholar]
  • 7.Jiang Y., Guo Z., Rezazadegan Tavakoli H., Leiva L.A., Oulasvirta A. Proceedings of the 37th Annual ACM Symposium on User Interface Software and Technology. Association for Computing Machinery; New York, NY, USA: 2024. EyeFormer: Predicting personalized scanpaths with transformer-guided reinforcement learning; pp. 1–15. [Google Scholar]
  • 8.Wang B., Tan D., Kuo Y.L., Sun Z., Wolfe J.M., Cham T.J., Zhang M. Gazing at Rewards: Eye Movements as a Lens into Human and AI Decision-Making in Hybrid Visual Foraging; Proceedings of the Computer Vision and Pattern Recognition Conference; Nashville, TN, USA. 11–15 June 2025. [Google Scholar]
  • 9.Chia W.M.D., Keoh S.L., Goh C., Johnson C. Risk assessment methodologies for autonomous driving: A survey. IEEE T-ITS. 2022;23:16923–16939. doi: 10.1109/TITS.2022.3163747. [DOI] [Google Scholar]
  • 10.Qiu Y., Busso C., Misu T., Akash K. Proceedings of the ICASSP 2022-2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE; New York, NY, USA: 2022. Incorporating gaze behavior using joint embedding with scene context for driver takeover detection; pp. 4633–4637. [Google Scholar]
  • 11.Chen J., Zhang Q., Chen J., Wang J., Fang Z., Liu Y., Yin G. A Driving Risk Assessment Framework Considering Driver’s Fatigue State and Distraction Behavior. IEEE T-ITS. 2024;25:20120–20136. doi: 10.1109/TITS.2024.3446832. [DOI] [Google Scholar]
  • 12.Yang Z., Mondal S., Ahn S., Xue R., Zelinsky G., Hoai M., Samaras D. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. IEEE; New York, NY, USA: 2024. Unifying top-down and bottom-up scanpath prediction using transformers; pp. 1683–1693. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Zanca D., Melacci S., Gori M. Gravitational laws of focus of attention. IEEE Trans. Pattern Anal. Mach. Intell. 2019;42:2983–2995. doi: 10.1109/TPAMI.2019.2920636. [DOI] [PubMed] [Google Scholar]
  • 14.Le Meur O., Liu Z. Saccadic model of eye movements for free-viewing condition. Vis. Res. 2015;116:152–164. doi: 10.1016/j.visres.2014.12.026. [DOI] [PubMed] [Google Scholar]
  • 15.İleri R., Altıntop Ç.G., Latifoğlu F., Demirci E. DyslexiaNet: Examining the Viability and Efficacy of Eye Movement-Based Deep Learning for Dyslexia Detection. J. Eye Mov. Res. 2025;18:56. doi: 10.3390/jemr18050056. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Takinami S., Morita Y., Seita J., Oshika T. An Open-Source Horizontal Strabismus Simulator as an Evaluation Platform for Monocular Gaze Estimation Using Deep Learning Models. J. Eye Mov. Res. 2026;19:20. doi: 10.3390/jemr19010020. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Sun W., Chen Z., Wu F. Visual scanpath prediction using IOR-ROI recurrent mixture density network. TPAMI. 2019;43:2101–2118. doi: 10.1109/TPAMI.2019.2956930. [DOI] [PubMed] [Google Scholar]
  • 18.Chen X., Jiang M., Zhao Q. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. IEEE; New York, NY, USA: 2021. Predicting human scanpaths in visual question answering; pp. 10876–10885. [Google Scholar]
  • 19.Kümmerer M., Bethge M., Wallis T.S. DeepGaze III: Modeling free-viewing human scanpaths with deep learning. J. Vis. 2022;22:7. doi: 10.1167/jov.22.5.7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Schwinn L., Precup D., Eskofier B., Zanca D. Behind the machine’s gaze: Neural networks with biologically-inspired constraints exhibit human-like visual attention. arXiv. 20222204.09093 [Google Scholar]
  • 21.Mondal S., Yang Z., Ahn S., Samaras D., Zelinsky G., Hoai M. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. IEEE; New York, NY, USA: 2023. Gazeformer: Scalable, effective and fast prediction of goal-directed human attention; pp. 1441–1450. [Google Scholar]
  • 22.Xue R., Xu J., Mondal S., Le H., Zelinsky G., Hoai M., Samaras D. Proceedings of the Computer Vision and Pattern Recognition Conference. IEEE; New York, NY, USA: 2025. Few-shot Personalized Scanpath Prediction; pp. 13497–13507. [Google Scholar]
  • 23.Yang Z., Huang L., Chen Y., Wei Z., Ahn S., Zelinsky G., Samaras D., Hoai M. Proceedings of the Computer Vision and Pattern Recognition Conference. IEEE; New York, NY, USA: 2020. Predicting goal-directed human attention using inverse reinforcement learning; pp. 193–202. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Huang Z., Zhou Y., Zhu J., Gou C. Proceedings of the ICASSP 2024-2024 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP) IEEE; New York, NY, USA: 2024. Driver scanpath prediction based on inverse reinforcement learning; pp. 8306–8310. [Google Scholar]
  • 25.Kara O., Nisar H., Rehg J.M. DiffEye: Diffusion-Based Continuous Eye-Tracking Data Generation Conditioned on Natural Images. arXiv. 20252509.16767 [Google Scholar]
  • 26.Cartella G., Cuculo V., D’Amelio A., Cornia M., Boccignone G., Cucchiara R. Proceedings of the IEEE/CVF International Conference on Computer Vision. IEEE; New York, NY, USA: 2025. Modeling Human Gaze Behavior with Diffusion Models for Unified Scanpath Prediction; pp. 16206–16216. [Google Scholar]
  • 27.Kang J., Groth C., Wu T., Torrens F., Sangkloy P., Wetzstein G., Sun Q. Infinite Gaze Generation for Videos with Autoregressive Diffusion. arXiv. 2026 doi: 10.48550/arXiv.2603.24938.2603.24938 [DOI] [Google Scholar]
  • 28.Beckers K., Heisel M., Frese T., Hatebur D. Proceedings of the 2013 IEEE 24th International Symposium on Software Reliability Engineering (ISSRE) IEEE; New York, NY, USA: 2013. A structured and model-based hazard analysis and risk assessment method for automotive systems; pp. 238–247. [Google Scholar]
  • 29.Fu Y., Li C., Luan T.H., Zhang Y., Mao G. Infrastructure-cooperative algorithm for effective intersection collision avoidance. Transp. Res. Part C Emerg. Technol. 2018;89:188–204. doi: 10.1016/j.trc.2018.02.003. [DOI] [Google Scholar]
  • 30.Katrakazas C., Quddus M., Chen W.H. A new integrated collision risk assessment methodology for autonomous vehicles. Accid. Anal. Prev. 2019;127:61–79. doi: 10.1016/j.aap.2019.01.029. [DOI] [PubMed] [Google Scholar]
  • 31.Malawade A.V., Yu S.Y., Hsu B., Muthirayan D., Khargonekar P.P., Al Faruque M.A. Spatiotemporal scene-graph embedding for autonomous vehicle collision prediction. IEEE Internet Things J. 2022;9:9379–9388. doi: 10.1109/JIOT.2022.3141044. [DOI] [Google Scholar]
  • 32.Wang T., Chen K., Chen G., Li B., Li Z., Liu Z., Jiang C. Gsc: A graph and spatio-temporal continuity based framework for accident anticipation. IEEE Trans. Intell. Veh. 2023;9:2249–2261. doi: 10.1109/TIV.2023.3257169. [DOI] [Google Scholar]
  • 33.Song W., Li S., Chang T., Xie K., Hao A., Qin H. Dynamic attention augmented graph network for video accident anticipation. Pattern Recognit. 2024;147:110071. doi: 10.1016/j.patcog.2023.110071. [DOI] [Google Scholar]
  • 34.Liu Q., Huang H., Zhao S., Shi L., Ahn S., Li X. RiskNet: Interaction-aware risk forecasting for autonomous driving in long-tail scenarios. Transp. Res. Part E Logist. Transp. Rev. 2026;205:104478. doi: 10.1016/j.tre.2025.104478. [DOI] [Google Scholar]
  • 35.Liu Q., Yu R., Cai Y., Yuan Q., Wei H., Lv C. Collision risk prediction and takeover requirements assessment based on radar-video integrated sensors data: A system framework based on LLM. Accid. Anal. Prev. 2025;218:108041. doi: 10.1016/j.aap.2025.108041. [DOI] [PubMed] [Google Scholar]
  • 36.Huang Z., Zhou Y., Gou C. Proceedings of the Chinese Conference on Pattern Recognition and Computer Vision (PRCV) Springer; Berlin/Heidelberg, Germany: 2024. Task-Oriented Scanpath Prediction with Spatial-Temporal Information in Driving Scenarios; pp. 177–191. [Google Scholar]
  • 37.Gou C., Zhou Y., Li D. Driver attention prediction based on convolution and transformers. J. Supercomput. 2022;78:8268–8284. doi: 10.1007/s11227-021-04151-2. [DOI] [Google Scholar]
  • 38.Cristino F., Mathôt S., Theeuwes J., Gilchrist I.D. ScanMatch: A novel method for comparing fixation sequences. Behav. Res. Methods. 2010;42:692–700. doi: 10.3758/BRM.42.3.692. [DOI] [PubMed] [Google Scholar]
  • 39.Dewhurst R., Nyström M., Jarodzka H., Foulsham T., Johansson R., Holmqvist K. It depends on how you look at it: Scanpath comparison in multiple dimensions with MultiMatch, a vector-based approach. Behav. Res. Methods. 2012;44:1079–1100. doi: 10.3758/s13428-012-0212-2. [DOI] [PubMed] [Google Scholar]
  • 40.Assens M., Giro-i Nieto X., McGuinness K., O’Connor N.E. Proceedings of the ECCV Workshops. Springer; Berlin/Heidelberg, Germany: 2018. PathGAN: Visual scanpath prediction with generative adversarial networks; pp. 406–422. [Google Scholar]
  • 41.Sui X., Fang Y., Zhu H., Wang S., Wang Z. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. IEEE; New York, NY, USA: 2023. Scandmm: A deep markov model of scanpath prediction for 360deg images; pp. 6989–6999. [Google Scholar]
  • 42.Bao W., Yu Q., Kong Y. Proceedings of the IEEE/CVF International Conference on Computer Vision. IEEE; New York, NY, USA: 2021. Drive: Deep reinforced accident anticipation with visual explanation; pp. 7619–7628. [Google Scholar]
  • 43.Karim M.M., Li Y., Qin R., Yin Z. A dynamic spatial-temporal attention network for early anticipation of traffic accidents. IEEE T-ITS. 2022;23:9590–9600. doi: 10.1109/TITS.2022.3155613. [DOI] [Google Scholar]
  • 44.Liu W., Zhang T., Lu Y., Chen J., Wei L. THAT-Net: Two-layer hidden state aggregation based two-stream network for traffic accident prediction. Inf. Sci. 2023;634:744–760. doi: 10.1016/j.ins.2023.03.075. [DOI] [Google Scholar]
  • 45.Vater C., Wolfe B., Rosenholtz R. Peripheral vision in real-world tasks: A systematic review. Psychon. Bull. Rev. 2022;29:1531–1557. doi: 10.3758/s13423-022-02117-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Chen X., Jiang M., Zhao Q. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition. IEEE; New York, NY, USA: 2024. Beyond average: Individualized visual scanpath prediction; pp. 25420–25431. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

The dataset used in this study aggregates risky data from DADA-Diverse [36] and safe data from BDDX-Diverse [37].


Articles from Journal of Eye Movement Research are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES