Multimodal Masked Diffusion Autoencoder for Modeling Impaired Driving

John Gideon, Anshul Gupta, Megan Applegate-Kenton, Kayli Battel, Todd J Rowell, Patricio Reyes Gomez, Laporsha Dees, Emily Sumner, Avinash Balachandran, Guy Rosman

TL;DR

Researchers at the Toyota Research Institute have introduced ID-MAE, a multimodal masked-diffusion autoencoder designed to detect driver impairment by jointly modeling gaze, vehicle trajectory, and scene video. By combining a self-supervised reconstruction objective with traditional classification, the model significantly improves impairment detection and behavior forecasting, supported by a massive new 103-hour simulator dataset called DIVERT.

What Problem Does This Paper Address?

Understanding a driver's cognitive state—whether they are stressed, distracted, or fatigued—is critical for developing effective AI safety assistants. However, obtaining high-quality "ground-truth" labels for these internal states at scale is prohibitively expensive and difficult.

Existing datasets often lack the multimodal richness (like synchronized scene video or eye-tracking) needed to capture the subtle interplay between a driver's attention and their environment. Furthermore, standard supervised learning models struggle when labels are scarce or noisy. This paper addresses these gaps by leveraging self-supervision: teaching a model to understand driving behavior by forcing it to reconstruct missing pieces of data, which in turn makes it much better at identifying impairment.

Methods

The core of the work is the Impaired Driving Masked Autoencoder (ID-MAE). It treats different data streams—gaze, agent trajectories, scene video, and impairment labels—as "tokens" in a unified sequence.

Figure 2. Architecture overview. Gaze, trajectory, video, and impairment tokens are split into clean tokens, which the model sees as context, and noised tokens (dashed), which it learns to reconstruct. Unimodal encoders embed each modality, and a multimodal encoder fuses them. Decoders then denoise the noised tokens in a U-Net-like fashion. Video serves as encoded context only and is not decoded.

Key technical innovations include:

  • Masked Diffusion: During training, the model randomly "noises" or hides certain tokens (e.g., the last 8 seconds of a trajectory or the driver's gaze). It then uses a diffusion process to denoise and reconstruct these missing parts.
  • Geometric Relative Attention: Instead of simple positional encodings, the model uses a learned bias based on the physical geometry between tokens (e.g., the relative angle between a driver's gaze and a nearby vehicle).
  • Joint Training: The model is trained to simultaneously predict the impairment label (as a masked discrete token) and reconstruct continuous behavioral signals (gaze and trajectory).

Datasets

The authors introduce DIVERT (Driving with Impairments in Varied Everyday Realistic Tasks), a new benchmark for the community:

  • Scale: 103.3 hours of driving data from 109 participants.
  • Diversity: Includes 10 different impairment inductions (e.g., n-back cognitive tasks, crying babies, texting, and forced GPS reroutes).
  • Hazards: Features 21 pre-programmed hazards like red-light runners and "pop-out" parked cars to see how impairments affect reaction to risk.
  • Comparison: The model was also validated on the existing IDD (Impaired Driving Dataset).
Figure 3. Images of CARLA [24] environment scenes: (a) emergency vehicle props on the side of the road causing a visual sink, (b) Carla Cola props blocking the road and causing a forced reroute, and (c) the ego driver approaching a parallel parked pop-out hazard vehicle.

Key Insights and Ideas

  • Self-Supervision is a Force Multiplier: The "aha moment" is that forcing the model to reconstruct how a person drives (trajectory and gaze) makes it significantly better at identifying why they are driving that way (impairment). Removing the reconstruction loss caused a major drop in detection performance.
  • Visual vs. Cognitive Distraction: The model reveals that "scene search" (visual distraction) is easily distinguishable from cognitive tasks (like a phone call). Visual tasks pull eyes off the road in obvious ways, while cognitive tasks manifest as much subtler changes in scanning patterns and reaction times.
  • Location Matters: The authors discovered a "location leak"—certain impairments were more common on specific parts of the map. They introduced a "paired location evaluation" to ensure the model was actually learning driver behavior rather than just memorizing which roads were difficult.
Figure 4. Spatial distribution of impairments is imbalanced so lo- cation leaks impairment data. We mitigate with paired evaluation.

Key Results

  • Detection Performance: On the DIVERT dataset, ID-MAE achieved a paired Area Under the Curve (AUC) of 0.706, a substantial leap over the 0.590 achieved by the same architecture without the self-supervised reconstruction task.
  • State-of-the-Art: ID-MAE outperformed all established baselines (Logistic Regression, Random Forest, SVM) on both the DIVERT and IDD datasets.
  • Behavioral Forecasting: Beyond detection, the model successfully forecasts future trajectories and gaze patterns. Using a "best of six" diffusion sampling approach reduced trajectory error (ADE) by roughly 24-28% compared to single-sample methods.

Limitations and Future Work

While impressive, the work has some limitations:

  • Simulator Gap: DIVERT is a simulator-based dataset (CARLA). While high-fidelity, real-world driving involves even more complex visual and social nuances.
  • Latency: The current model uses 30-second clips. For real-time safety interventions, detecting impairment at much lower latencies (e.g., 1-2 seconds) is a necessary next step.
  • Language Integration: The authors suggest that future iterations could incorporate natural language to better describe and model the specific nature of driver distractions.

Summary updated

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.
BibTeX
@misc{gideon2026multimodal,
  author = {John Gideon and Anshul Gupta and Megan Applegate-Kenton and Kayli Battel and Todd J Rowell and Patricio Reyes Gomez and Laporsha Dees and Emily Sumner and Avinash Balachandran and Guy Rosman},
  title = {{Multimodal Masked Diffusion Autoencoder for Modeling Impaired Driving}},
  year = {2026},
  eprint = {2611.23211},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.23211},
}
Figure