Multimodal Masked Diffusion Autoencoder for Modeling Impaired Driving
Human cognitive state (e.g., distraction, stress), gaze, and behavior interact with the driving environment in subtle ways that AI could use to assist drivers, but ground-truth labels for human cognitive state levels are costly to obtain at scale. We propose a multimodal masked-diffusion autoencoder, ID-MAE, that adds a self-supervised objective to impairment prediction: alongside predicting the impairment label as a masked token, it reconstructs masked gaze and trajectory.
From the abstract. Our summary is in progress.
Full paper
Multimodal Masked Diffusion Autoencoder for Modeling Impaired Driving
Published under CC BY-NC-SA 4.0. Reproduced with attribution; original at arXiv:2611.23211 (PDF).
Abstract
Human cognitive state (e.g., distraction, stress), gaze, and behavior interact with the driving environment in subtle ways that AI could use to assist drivers, but ground-truth labels for human cognitive state levels are costly to obtain at scale. We propose a multimodal masked-diffusion autoencoder, ID-MAE, that adds a self-supervised objective to impairment prediction: alongside predicting the impairment label as a masked token, it reconstructs masked gaze and trajectory. To probe the effects of different modalities and types of impairments on model inference, we introduce DIVERT, a driving-simulator dataset containing 103 hours of driving data (n = 109) with ten impairment inductions spanning cognitive, visual, and emotional states, recorded with gaze, vehicle state, and scene video. We demonstrate how ID-MAE affords significant improvements in impairment inference results on both the DIVERT dataset and existing datasets, and enables strong results in additional tasks, such as trajectory and gaze prediction. For location-matched pairs, our model achieves a paired AUC of 0.706 for impairment detection on DIVERT, compared to 0.590 without reconstruction loss, improving over existing baselines. We probe the design space in terms of input modalities, masking scheme, positional encoding, attention mechanism, and decoding. We also investigate the interaction between various impairments in training and inference, demonstrating that visually demanding distractions are separable from cognitive distractions. Code and data will be available upon acceptance.
1 Introduction
The interaction of human cognitive state, gaze, and behavior lies at the core of human safety approaches [73, 106]. Reasoning about driver safety require us to understand the interplay between these over prolonged periods of time and across several modalities. For instance, consider reasoning about a driver ignoring a stopped vehicle in front of them – their fixations on the dashboard or nearby objects may be signs of whether they are distracted, tasked, or tired. However, the space of all multimodal behavior and attention sequences is prohibitively large. Within the distribution of these sequences, risk-critical factors may not be strongly observed; for example, cognitive distraction may surface only as a slight narrowing of visual scanning and marginally delayed responses to peripheral events. Self-supervised approaches for temporal signal analysis have proven invaluable [66, 26], especially where labels are scarce [99] or noisy [33]. In inherently multimodal inference tasks, such as those connecting gaze, behaviors, and latent cognitive factors, leveraging self-supervision becomes a challenging yet crucial aspect of the solution. A limited amount of data for risk-relevant, rare events [30, 23], as well as the high-dimensional nature of the behavior observation sequences, thus requires us to draw supervision from the behavior itself rather than from labels alone.
We probe self-supervision on driving data with impairment type labels, formulating it as multimodal masked-diffusion inference, and examine how jointly modeling several impairments and driver behavior affects impairment detection. This requires richer data than existing impaired-driving datasets, which are small [80], lack scene video or agent trajectories [46], are collected under different levels of vehicle automation [20], or limited in impairment categories [39]. Thus, the contributions of this work include:
- We propose Impaired Driving MAE (ID-MAE), a model leveraging gaze, trajectories, scene video, and driver impairment state via a masked diffusion approach. It uses multimodal self-supervision and joint training on impairment tasks for improved impairment detection, while also generating gaze and trajectory predictions.
- We introduce Driving with Impairments in Varied Everyday Realistic Tasks (DIVERT): a new dataset of diverse, controlled driver impairments, scenarios, and hazards.
- We establish baselines on DIVERT and demonstrate that ID-MAE outperforms existing baselines on DIVERT and the Impaired Driving Dataset (IDD) [30]. Masked reconstruction of behavioral modalities substantially improves impairment detection over label supervision alone. We analyze per-impairment performance and report the benefit of joint training across impairment types.
2 Related works
Driver impairment and state detection.
Cognitive distraction has long been characterized through its effects on visual scanning, workload, and vehicle control [73, 82], and can be detected from behavioral and physiological signals using learned models [52]. A large body of work targets automatic detection of impaired or otherwise negative driver states [78], from vehicle-control, physiological, gaze, and video signals [53, 59, 98, 47, 51, 1, 77, 96]. Multimodal models with gaze/attention have explored baseline and impaired driving (see [95, 2] and references therein), with recent datasets adding modalities [20] or latent factors [30]. Because impairment labels are scarce, some works reduce supervision via visual contrastive learning [48, 104] and with unsupervised learning over vehicle, physiological, and surrounding-object signals [69], while other works probe generalization to unseen individuals [72, 13, 9]. We instead train one generative model whose masked targets include the impairment label alongside gaze and trajectory. Reconstructing behavior provides self-supervision, and supervising impairment types jointly can improve detection.
Masked modeling of multimodal sequences.
Masked autoencoders (MAEs) have been extended to video [29, 31] and other modalities [8, 61], unified sequence models handle many tasks and modalities as token sequences with masked denoising among their pretraining objectives [57], and iterative unmasking [14] underlies many generative variants. For motion data, masked trajectory models randomize which parts of a trajectory are hidden to support prediction, imputation, and representation learning [91, 63]. Joint masking over 2D and 3D representations has also been used for point-cloud pretraining [34], motivating our geometry-aware masking. We combine modality-level masking with temporal windows so a single task-agnostic objective covers prediction and imputation, as well as impairment inference when the label is masked.
Diffusion for representation learning and multimodal sequences.
Diffusion models have been used for self-supervised pretraining [11, 60, 94] and semi-supervised learning [97, 37]. MAE diffusion has been used for representation learning [88, 35] and prediction [55], with masked generation complementing denoising-only training [92, 87] and encouraging information bottlenecks [90]. Our decoder uses per-token noise level, similar to [15]; rather than sampling independent levels, we share one sampled step across the noised tokens, tying the noise to the modality and window mask, and supply the level to the decoder as an attention bias. We jointly diffuse continuous signals (gaze, trajectory) and a discrete label using an absorbing-state process [7], closely related to masked discrete diffusion for language [75, 56, 64] and related approaches [101]. Multimodal diffusion for generation has been explored with continuous latents [10], masked discrete tokens [83], and mixed continuous and discrete modalities via a language-modeling loss combined with diffusion [103] or a joint process over arbitrary state spaces [74]; masked diffusion has also been used for audio-video representation learning [65]. These mostly target generation, whereas we infer a latent state and impute or predict missing behavior. Beyond driving, diffusion enables imputation of multivariate time-series [85, 71, 3]; time-series foundation models [32, 5, 21] focus on univariate series and do not leverage geometric relations between signals. Latent-variable models [44], including diffusion variants [22, 4], have mostly addressed isolated prediction or classification.
Trajectory and gaze prediction.
Trajectory prediction has standard benchmarks [27, 89], strong attention-based models [63, 62, 81], and diffusion-based forecasters [42, 58, 102]. These forecast agent motion from scene context alone, without driver gaze or latent state; Gaze modeling spans saliency [40, 38], scanpath prediction [6, 49], focus of attention [68, 28], and, recently, diffusion-based gaze generation [43, 45]. Some works have used gaze and field-of-view to condition ego-trajectory prediction [2, 54]. We instead jointly model gaze, trajectory, and scene.
3 Model
Our model (Figure 2) is an encoder–decoder transformer trained as a masked diffusion model in the style of DiffMAE [88]. We extend it from images to four modalities (gaze, trajectory, video and impairment), diffusing the impairment label as a discrete token alongside the continuous signals, and incorporate geometric relative attention.
Each modality is a grid of tokens over a time axis T and a within-frame axis W (agents for trajectory, image patches for video, W{=}1 for gaze and impairment). Visible (clean) tokens are embedded by per-modality unimodal encoders and fused by a multimodal encoder. Hidden (noised) tokens are corrupted by forward diffusion and denoised by a multimodal decoder followed by per-modality unimodal decoders. Video is context only: its masked tokens are hidden from the encoder but never decoded or supervised.
3.1 Geometric Relative Attention
Every attention layer adds a learned bias [70] to the scaled dot-product logit \ell, computed from the geometry between the two tokens, similar to trajectory prediction models that encode the pairwise relative pose between agents [17, 105, 100], but extended to other modalities:
\ell_{ij}^{(h)}=\frac{\big\langle\bm{q}_{i}^{(h)},\bm{k}_{j}^{(h)}\big\rangle}{\sqrt{d_{\mathrm{h}}}}+b_{ij}^{(h)},\hskip 10.00002pt\bm{b}_{ij}=\mathrm{MLP}_{\mathrm{pos}}\!\big(\gamma(\bm{r}_{ij})\big),where \bm{q}_{i}^{(h)} and \bm{k}_{j}^{(h)} are the query and key of head h, d_{\mathrm{h}} is the per-head dimension, and \bm{r}_{ij} collects the offsets from token i to token j. Each offset is embedded sinusoidally (\gamma) and a multilayer perceptron (MLP) \mathrm{MLP}_{\mathrm{pos}}, learned separately per query–key modality pair and layer, maps the embeddings to one bias per head.
The offsets are the differences in time index, agent index and diffusion step, plus a geometric offset. Clean tokens have step zero, so the step offset is how a noised query learns its timestep. Between two sensor tokens (gaze, or a video patch’s center), the geometric offset is the difference in viewing direction (\psi,\vartheta). Otherwise, it is the key’s displacement, bearing and elevation as seen from a viewpoint: the query agent’s heading for two trajectory tokens, or the ego looking along the sensor token’s viewing direction for a sensor token and an agent. The impairment token acts as the ego looking straight ahead. Time, positions and viewing directions are never token content; they reach the model only through this bias (see details in Supplementary).
3.2 Unimodal Encoders
- Impair.
- 10
- 1
- one-hot (3K)
- T
- logits (K)
- Gaze
- 10
- 1
- validity (4), events (12)
- T
- \psi,\vartheta (4)
- Traj.
- 2
- 8
- \bm{v},\bm{a},\omega, flags (9)
- T,W
- \bm{a},\omega (4)
- Video
- 2
- 21
- ViT-B/32 patch (768)
- T,W
- –
For a token u of modality m, the unimodal encoder linearly projects its content \bm{x}_{u} to the model width, \bm{z}_{u}=\bm{W}_{\!\mathrm{enc}}^{m}\,\bm{x}_{u}, and refines it with N_{\mathrm{uni}}{=}2 transformer blocks along the modality’s native axes (Table 1).
- Impairment tokens carry the clip’s labels as a one-hot over
\{\textsc{neg},\textsc{pos},\textsc{mask}\}for each of theKimpairment types. Labels are replicated at 10 Hz across the clip to align in time with sensor tokens; all impairment tokens are masked or revealed together. - Gaze is per-eye yaw and pitch, back-projected from pre-calibrated display coordinates. The tokens carry per-eye validity flags and gaze events: saccade and fixation labels and their transitions [19]. The angles enter only through the attention bias, making them relative to scene objects.
- Trajectory covers the ego vehicle and up to seven surrounding agents, translated and rotated into the ego’s mean visible pose. The tokens carry velocity
\bm{v}and acceleration\bm{a}in the agent’s heading frame, yaw rate\omega, and validity and ego flags. Position and heading enter only through the attention bias, thus are relative to each agent’s frame of reference. - Video uses frozen vision transformer (ViT-B/32) [25] features on a
3{\times}7grid cropped to the driving field of view.
3.3 Multimodal Encoder and Decoder
The multimodal encoder stacks N_{\mathrm{mm}}=5 blocks over the unimodal encodings \bm{z}_{u} of the clean tokens. Each block has a temporal layer, in which a token attends to the clean tokens of its own modality over time within a local window, and a cross-modal layer, in which it attends to the clean tokens of all modalities at the nearest time index. A 10 Hz gaze or impairment token thus reads the nearest 2 Hz trajectory and video tokens, and the bias keeps the residual time offset (Section 3.1). Each modality has its own query and output projections and feed-forward block, and in the cross-modal layer each query–key modality pair has its own key and value projections and its own \mathrm{MLP}_{\mathrm{pos}}. The output of every block, \bm{z}^{(1)},\dots,\bm{z}^{(N_{\mathrm{mm}})}, is cached.
The multimodal decoder acts on the noised tokens of the decoded modalities. A noised token carries the noised version of the clean content, with channels that would leak ground truth (validity, ego flag, gaze events) withheld:
- Impairment: the one-hot set to mask.
- Gaze: no content; token enters as a learned embedding.
- Trajectory: the diffused acceleration
\bm{a}and yaw rate\omega, and the velocity\bm{v}re-integrated from the diffused\bm{a}.
The noised coordinates (gaze angles, and the trajectory position and heading integrated from the diffused controls) are seen only through the attention bias. A per-modality linear layer projects the noised content \bm{x}^{(\tau)}_{u} to the initial decoder state \bm{d}_{u}=\bm{W}_{\!\mathrm{dec}}^{m}\,\bm{x}^{(\tau)}_{u}. The decoder mirrors the encoder’s layers and parameterization and is built in reverse order: in each layer of its n-th block, a noised token first cross-attends to the cached encoder output at depth N_{\mathrm{mm}}{+}1{-}n,
\bm{d}_{u}\leftarrow\bm{d}_{u}+\mha\big(\bm{d}_{u},\,\bm{z}^{(N_{\mathrm{mm}}+1-n)}\big),with multi-head attention (\mha) the biased attention of Eq. (1), reading the same clean keys as the corresponding encoder layer, and then self-attends among the noised tokens. This U-Net-like coupling follows the diffusion masked autoencoder of Wei et al. [88]. The diffusion processes, the trajectory control integration, and the local attention window are detailed in the Supplementary Material.
3.4 Unimodal Decoders
Each decoded modality then refines \bm{d}_{u} with N_{\mathrm{uni}}{=}2 blocks along its native axes (Table 1), mirroring its unimodal encoder. Its n-th block cross-attends to the output of block N_{\mathrm{uni}}+1{-}n of the same modality’s unimodal encoder, so the first decoder block reads the deepest unimodal features, and then self-attends among that modality’s noised tokens. A LayerNorm and a linear head produce the prediction:
- Impairment: one logit per impairment type at every token.
- Gaze: per-eye yaw
\psiand pitch\vartheta. - Trajectory: acceleration
\bm{a}and yaw rate\omega, integrated into velocity, position and heading (similar to [18, 76, 41]).
Following Wei et al. [88], the trajectory and gaze heads directly predict the clean targets rather than the noise.
3.5 Masking and Loss
Masking.
Each training example draws a mask in three steps. First, a non-empty subset of the continuous modalities (trajectory, gaze, video) is kept available; the others are dropped from the input, and the impairment label is always available. Second, a non-empty subset of the available modalities is noised. It must include at least one decoded modality, and it may include the impairment label, so an example trains reconstruction with the label as context, label prediction, or both. Third, the noised continuous modalities share one contiguous window \mathcal{T}_{\xi} of length 4–12 s, chosen with equal probability to end at the clip end (future prediction) or to lie in the clip interior (interpolation). Tokens inside \mathcal{T}_{\xi} are noised, and the impairment label, when noised, is masked for the whole clip.
Loss.
Trajectory and gaze are trained with L_{1} losses \mathcal{L}_{\text{traj}} and \mathcal{L}_{\text{gaze}} between the predicted and true values of their targets (\bm{a} and \omega for trajectory, \psi and \vartheta for gaze), averaged over the noised tokens; \mathcal{L}_{\text{traj}} adds the same term computed over the ego vehicle alone. The impairment loss \mathcal{L}_{\text{imp}} is a binary cross-entropy (BCE) on the masked labels of each impairment type, averaged over the clip’s tokens. It compares that impairment against baseline clips, with a positive-class weight equal to the ratio of negative to positive training clips. The total loss is
\mathcal{L}=\mathcal{L}_{\mathrm{traj}}+\mathcal{L}_{\mathrm{gaze}}+\lambda\,\mathcal{L}_{\mathrm{imp}},\qquad\lambda=10,where \mathcal{L}_{\mathrm{imp}} averages the per impairment type losses. Further details on mask sampling, loss weighting and implementation are in the Supplementary Material.
4 Dataset
- CoCAtt [80]
- 1 (cog. distraction)a
- 0
- G, S, V, L
- 11
- 11.9
- Keshtkaran et al. [46]
- 1 (alcohol)
- \geq1b
- S, C
- 60
- 30
- DATAD [39]
- 1 (phone distraction before takeover)a
- 4
- G, Sc, V, T
- 60
- n/r
- IDD [30]
- 3 (alcohol, cog. distraction)
- 4
- G, S, V, Q, T
- 52
- 23.7
- manD 1.0 [20]
- 19 (cog. load, emot., visual/manual distraction)a, d
- 6
- G, C, V, P, Q, T
- 50e
- n/r
- C42CN [84]
- 5 (cog., emot., and sensorimotor distraction)
- 1
- G, S, C, V, P, Q
- 68
- \sim80f
- DMD [67]
- 0 (fatigue, cog., vis., man. distraction)g
- 0 (on-road)
- C
- 37
- 41
- DIVERT (ours)
- 10 (cog. load, emot., vis., cog. distraction)
- 6
- G, S, V, Q, T
- 109
- 103.3
4.1 Contribution
Overview.
While there are existing public datasets with driving impairments (see Table 2), DIVERT is designed to cover a wide variety of impairment categories while preserving consistent rich modalities, supplying reproducible driving environments and hazards, and providing ample scale for training multimodal deep models.
DIVERT contains 103.3 hours of simulator driving data collected in CARLA [24] from 109 participants. It spans 46.42 hours of driving under ten ‘induction’ techniques covering four impairment categories – cognitive distraction, frustration and stress, visual distraction, and cognitive load. For more information, see the Supplementary Material.
Data Release.
DIVERT includes synchronized forward scene video with impairment labels, vehicle trajectories, and control inputs – with driver-facing signals including eye gaze and periodic surveys of driver cognitive load, fatigue, and emotional state. It includes a set of six controlled road hazard categories such as parked car pop-outs and red light runners. The dataset will be made publicly available.
Phases.
The dataset was collected in three ‘Phases,’ hereafter Phase 1 (Naturalistic), Phase 2 (Impaired), and Phase 3 (Hazardous). Beginning in Phase 1, participants drove through a town setting with a gamified task as ‘delivery drivers’ following a bespoke GPS app, with the opportunity to earn additional monetary incentive in the form of ‘tips,’ as motivation for repeatedly driving 5-10 minute routes broken up by surveys. Phase 2 added different impairments during driving scenarios and Phase 3 added hazards.
Driving Scenarios.
Participants were assigned to one of the three collection Phases (between-subjects), and completed a series of \sim5-15 minute driving scenarios within that phase – starting in Phase 2, each under a different baseline or impaired condition (within-subjects).
Inductions.
Impairment inductions were informed by prior work looking at cross-domain impaired driving study methodologies [12], and were separated into three groups: Passive music of the participant’s choice and radio segment; Continuous automated phone call, mailbox scene search, radio comprehension, n-back (1-back) task, and crying baby; and Instantaneous texting pop-ups, visual sinks using props in-simulation (ex. Figure 3(a); Phase 3 only), and forced GPS reroutes with blocked roads (ex. Figure 3(b); Phase 3 only). Inductions were framed as secondary tasks where the primary task was driving while following the GPS app.
Hazards.
Starting in Phase 3, we included 21 possible pre-programmed hazards of six categories throughout the map (ex. Figure 3(c)): red light runners (4), orthogonal parked pop-out cars (5), parallel parked pop-out cars (5), reckless driver (1), cut-off turn hazards (3), and ego vehicle turn hazards (3). The addition of hazards was intended to supplement the unintentional hazards caused by traffic behavior in the other Phases and provide opportunities for interesting combinations of a hazard occurring while a driver is impaired.
4.2 Data Collection
Protocol.
After consenting, participants put on an EmotiBit [16], adjusted their simulator seat, and completed gaze calibration. A video introduced the GPS-guided driving task and a practice drive was completed. In Phases 2 and 3, participants additionally watched a video explaining the route timer and performance ’tips’ and watched a video introducing secondary tasks. Each experimental block followed the same structure: participants drove baseline routes, watched the scenario’s secondary task video (Phases 2 and 3 only), drove a GPS-guided route, and completed surveys, including a motion sickness check, shortened NASA Task Load Index (NASA-TLX) [36], Karolinska Sleepiness Scale (KSS) [79], and Positive and Negative Affect Schedule (PANAS) scale [86]. Blocks repeated until all scenarios were complete, followed by debriefing (Phases 2 and 3) and compensation.
4.3 Dataset Statistics
Demographics.
Participant ages ranged from 21 to 66 years (mean of 37.7 and standard deviation of 10.7 years) for 109 completed participants across the three collection Phases (Phase 1 n=25, Phase 2 n=35, Phase 3 n=49).
Task Load.
To check that our impairments were psychologically noticeable, we compared how NASA-TLX scores differed by impairment type and the mean of each participant’s baseline drives. We used paired t-tests with Holm-corrections. N-back (+5.0, p<.001, d_{z}=1.94) and radio comprehension (+2.5, p<.001, d_{z}=0.98) raised overall workload. Other impairments had smaller, dimension-specific effects that were not detectable in the overall score. Forced reroute increased time pressure (+2.3, p=.013), baby crying increased frustration (+2.5, p=.013), phone call & scene search increased physical demand (+1.3, p=.034; +1.4, p=.016), and music reduced frustration (-1.2, p=.020). These results support that inductions were effective and varied in the types of demand and strength they imposed. Full analysis results are in the Supplementary Material.
5 Results
Datasets.
We perform experiments on DIVERT (Section 4) and, for comparison, IDD [30], a driving simulator dataset of cognitive distraction and intoxication. It contains 23.7 hours of data from 52 participants, with gaze, agent trajectories, and scene video. It covers three impairments – a statement understanding task, 1-back, and alcohol intoxication, all of which we consider as continuous impairments.
Labels, Clips, and Folds.
For evaluation purposes, we consider baseline driving and passive tasks as negative samples (together considered baseline clips) and continuous impairments as positive. Instantaneous impairments are used as unlabeled data, as their label depends on where the clip falls within the scenario and when the event was triggered. We have focused on 30-second clips following IDD [30]. DIVERT is divided into five participant-disjoint folds, stratified by Phase, and IDD uses the provided folds. We select three folds as train, one as validation, and one as test. When predicting impairment, all other modalities are provided as clean input. The validation data is used to Z-normalize the logits of each binary head using baseline clips and select the maximum as a sample’s overall level of impairment. We exclude DIVERT practice driving and Phase 1 data from training and evaluation, as they don’t contain any impairment labels.
Metrics.
We then calculate the P-AUC (pooled impairment area under the curve), which represents how likely a model is to rate a continuously impaired clip higher than a baseline clip, equally weighted across impairments. We also calculate each of the ten continuous impairment pairwise combination AUCs and report the mean as I-AUC (impairment vs impairment AUC). These effectively show the model’s ability to detect then differentiate types of impairment (see Supplementary for more detail on metric calculation). All results use five round-robin runs across the folds over three seeds, with the metrics averaged across all test sets.
- Method
- P-AUC
- I-AUC
- P-AUC
- I-AUC
- ID-MAE
- 0.706
- 0.728
- 0.744
- 0.691
- No reconstruction
- 0.590
- 0.603
- 0.689
- 0.635
- Logistic reg. [30]
- 0.571
- 0.624
- 0.695
- 0.631
- Random forest [30]
- 0.525
- 0.638
- 0.681
- 0.605
- Gradient boosting [30]
- 0.539
- 0.664
- 0.671
- 0.636
- SVM [30]
- 0.548
- 0.685
- 0.670
- 0.663
- Multi-task MLP [30]
- 0.571
- 0.657
- 0.700
- 0.672
- Location only
- 0.529
- 0.527
- 0.502
- 0.509
Paired Location Evaluation.
Because DIVERT crosses many impairment types with different routes and each participant drives only a small subset of the combinations, the joint distribution of impairment and route is not uniform. Initial investigations of DIVERT found that a clip’s location and path leaked impairment information, due to this imbalance, as shown in Figure 4. A logistic regression model trained with coarse location information alone demonstrates this leak with a P-AUC of 0.602 and I-AUC of 0.810. To correct for this, we focus the evaluation on pairs of samples that start near the same location and follow a similar path (see the Supplementary Material for details). We also only sample pairs within Phase to avoid any cohort-level shortcut. When instead using the same coarse location model over these pairs, the performance decreases to a P-AUC of 0.529 and an I-AUC of 0.527, controlling for location leak in the dataset. These 30,929 pairs are released with the dataset. On IDD we use all pairs, as location does not predict impairment (P-AUC of 0.502 and I-AUC of 0.509).
5.1 Impairment Detection
Table 33(a) has impairment detection results. Table 33(b) has per-impairment AUCs vs baseline clips & impairments.
Effect of self-supervision.
Removing the reconstruction loss and training on the impairment heads alone lowers P-AUC from 0.706 to 0.590 and I-AUC from 0.728 to 0.603 on DIVERT (\Delta -0.116 and -0.125), and from 0.744 to 0.689 and 0.691 to 0.635 on IDD (\Delta -0.055 and -0.056). It is lower in every test fold on both datasets, by 0.08–0.20 per fold on DIVERT. Masked reconstruction of the behavioral modalities therefore supplies valuable training signal that label supervision alone does not.
Comparison with feature baselines.
We retrain the publicly released baselines of [30] on our impairment heads, negatives and folds. ID-MAE leads every baseline on every metric. The gap is largest on DIVERT, where the baselines reach only 0.525–0.571 P-AUC (\Delta -0.135 to -0.181), close to location only (0.529), and 0.624–0.685 I-AUC (\Delta -0.043 to -0.104). Built on compact hand-crafted features, they remain strong in low-data regimes. On IDD, almost a third the size of leveraged DIVERT data (23.7 vs. 65.1 hours), they come within 0.044–0.074 of ID-MAE on P-AUC (0.670–0.700) and 0.019–0.086 on I-AUC (0.605–0.672), with the multi-task MLP closest overall and support vector machine (SVM) close on I-AUC.
Which impairments are confused.
The impairments form two groups: scene search separates from every other impairment (0.89–0.92), whereas n-back, phone call, baby crying and radio comprehension are hard to tell apart (0.55–0.63; the exception, n-back vs. baby crying at 0.68, rests on only 314 pairs). The groups follow the tasks’ demands. Scene search is a visual task that pulls the eyes off the road, whereas the other four are cognitive, loading attention without a comparable visual demand. Against baseline clips, scene search (0.91) is most clearly detected, with n-back (0.83) and radio comprehension (0.70) having the highest scores among cognitive tasks. Phone call (0.64) and baby crying (0.60) are only somewhat more distinguishable from baseline clips than from each other.
5.2 Trajectory and Gaze Reconstruction
Besides detecting impairment, ID-MAE reconstructs the masked portions of gaze and trajectory. We mask the last 8 s of every vehicle’s trajectory and the driver’s gaze, leaving 22 s of context, so the model forecasts 8 s ahead, the horizon of the Waymo Open Motion benchmark [27]. Tables 4 and 5 report the ego vehicle’s average / final displacement error (ADE and FDE, in meters, over the full 8 s) and gaze angular error (degrees, over the first 1 s and 2 s). Because the decoder is a diffusion model, we score both a single rollout and the best of N (subscript best; the per-clip minimum, N{=}6 as in Waymo); the gap between the two shows how varied its sampled futures are. We evaluate:
- ID-MAE with video visible only for the past or for the full clip, plus a single-step (non-diffusion) variant;
- Heuristic predictors: constant velocity, training-mean rate (trajectory); context mean, training mean (gaze).
Qualitative results are in the Supplementary Material.
Trajectory.
Every model is far better than the heuristic predictors (constant velocity ADE 10.37 m, FDE 26.80 m). Seeing the full video narrows possible futures and helps both decoders, but diffusion gains more (ADE 7.61\to 5.11 m vs. 7.05\to 5.28 m). Using the best of six puts diffusion clearly ahead. With past video, its best of six error (5.80 m ADE, 15.17 m FDE) is 24–28\% below its single sample and 13–15\% below single-step’s best of six. Single-step’s samples vary only due to input noise, so its best of six gains just 5–6\%. With full video, diffusion’s gain shrinks to 7–9\%, as fewer futures remain plausible. Best of six is optimistic, but its gain over a single sample shows that diffusion generates diverse rollouts, some close to the ground truth.
- Constant velocity
- 10.37
- -
- 26.80
- -
- Train mean rate
- 10.51
- -
- 27.20
- -
- Diffusion, past vid.
- 7.61
- 5.80
- 20.99
- 15.17
- Single step, past vid.
- 7.05
- 6.68
- 19.09
- 17.87
- Diffusion, full vid.
- 5.11
- 4.73
- 12.79
- 11.59
- Single step, full vid.
- 5.28
- 5.12
- 13.27
- 12.76
- Visible context mean
- 11.17
- -
- 11.02
- -
- Train mean
- 11.36
- -
- 11.14
- -
- Diffusion, past vid.
- 10.60
- 8.16
- 10.54
- 8.45
- Single step, past vid.
- 9.31
- 9.15
- 9.23
- 9.09
- Diffusion, full vid.
- 9.84
- 8.07
- 9.54
- 8.11
- Single step, full vid.
- 8.59
- 8.53
- 8.38
- 8.33
Gaze.
Gaze shifts within a fraction of a second, so it is much harder to forecast than the trajectory, and prior work predicts it only for a short horizon. Driver attention models predict the current or next frame [68, 93, 28], and few works anticipate gaze seconds ahead (e.g. 2s in [50]). We therefore score the first 1 s and 2 s of the masked window (Table 5). Even there, a single diffusion sample with past video only slightly beats the visible-context mean (10.54^{\circ} vs. 11.02^{\circ} at 2 s) and trails single-step (9.23^{\circ}). Full video helps both decoders (9.54^{\circ} and 8.38^{\circ}). The best of six again puts diffusion ahead (8.45^{\circ} and 8.11^{\circ} vs. 9.09^{\circ} and 8.33^{\circ}). It lowers diffusion’s error by 20\% with past video and 15\% with full video, against at most 2\% for single-step.
5.3 Model Ablations and Comparisons
- ID-MAE
- 0.706
- 0.728
- Only Gaze
- 0.665
- 0.720
- No Gaze
- 0.551
- 0.544
- Gaze @ 2 Hz
- 0.658
- 0.684
- Global pos.
- 0.688
- 0.706
- Single step
- 0.688
- 0.742
- Decode video
- 0.695
- 0.729
- Specialists
- 0.687
- 0.731
We perform several ablations, highlighted in Table 66(a) (full set in Supplementary). We first examine the impact of the gaze modality, including only using it, dropping it, and reducing its frame rate to 2 Hz to match the video and trajectory modalities. Both general impairment detection and differentiation rely strongly on gaze, with a gaze-only model reaching 0.665 P-AUC and 0.720 I-AUC. With trajectory and video added, the I-AUC stays similar, potentially because the strongest impairment differentiation scores come from scene search, a task which gaze is particularly suited to capturing. However, the P-AUC increases substantially. Notably, a model with gaze dropped has near chance performance. Reducing gaze frame rate substantially drops performance, demonstrating the benefit of a flexible model allowing different frame rates for each modality.
The ablations also show a slight benefit of geometric relative position injection over standard global positions. We find that training only with single step prediction results in similar performance to diffusion. While useful for generating trajectory and gaze rollouts, the impact to impairment prediction alone is mixed. Decoding the video tokens does not appear beneficial and increases compute.
We also trained specialist models that each only see one type of impairment and baseline to determine the impact of joint task training. Combining them together during evaluation lowers the P-AUC to 0.687, as the trained heads are not calibrated on one another. Specialists retain a similar I-AUC because it is dominated by the scene-search vs. cognitive pairs, which each specialist separates on its own. Figure 66(b) shows how much each impairment’s specialist detects the others – showing some transfer between cognitive impairments, but no transfer for scene search.
6 Conclusion
We presented ID-MAE, a multimodal masked diffusion autoencoder that jointly models impairment, gaze, trajectory, and video, and DIVERT, a driving-simulator dataset of 109 drivers under ten impairment inductions. We demonstrated how subtle, data-limited tasks such as impairment detection can leverage supervision from adjacent tasks, improving paired detection from 0.590 to 0.706 AUC, while also enabling gaze and trajectory prediction. The impairments and hazards in DIVERT open several directions we are eager to explore: detecting impairment at lower latency, analyzing how impairment impacts behavior under hazards, and investigating the role of language through further annotations and modeling.
7 LLM Usage Statement
General-purpose commercial LLM assistants (Claude, Anthropic) were used in the preparation of this work. Their use is described below.
Writing and editing.
Copyediting and grammar checking of human-written text; condensing and restructuring passages for length; prose and figure initial drafting; and redundancy checking across the paper.
Related work and references.
Searching for related literature and datasets; and initial reviews of potentially relevant literature. Every dataset, reported statistic, cited literature, and bibliographic entry appearing in the paper was verified by the authors against the primary source.
Code.
LLM assistants were used to initially generate code, including drafting functions from author-written specifications and debugging functionality. All code was reviewed, tested, and validated by the authors, who are responsible for the correctness of the reported results.
Research and Collection.
No LLM was used for research goal creation or for the design or execution of the data collection. The authors take full responsibility for all content, including all scientific claims and citations, and confirm that every section of the paper was reviewed, vetted, and edited by human authors.