Manuscript Offprint
arXiv:2610.33713Traffic-Context-Aware Driver Emotion Recognition with Expectation-Deviation-Driven Inference
Longhao Yan, Jinhao Liang, Kaidi Yang
Abstract—Driver emotion provides an important indication of how drivers perceive and evaluate ongoing traffic situations, making reliable emotion recognition an important capability for effective human-vehicle interaction. Yet, most existing driver emotion recognition approaches rely primarily on in-cabin images and overlook how surrounding traffic interactions shape driver emotional responses. To address this limitation, we propose a traffic-context-aware driver emotion recognition (TADER) framework that integrates in-cabin signals with out-of-cabin traffic scenarios, modeling driver emotions as arising from expectation deviation represented by the discrepancy between predicted and observed vehicle trajectories. The proposed framework comprises two key components: (1) a vision-based base recognizer that extracts spatiotemporal representations from in-cabin facial images to infer driver emotions, and (2) a traffic-context-aware fusion module that quantifies expectation deviation from external traffic scenarios and integrates it into the base recognizer via attention-based embedding fusion. To overcome the scarcity of paired in-cabin and out-of-cabin data, we introduce a transfer learning strategy that transfers a trajectory prediction model trained on large-scale naturalistic datasets to smaller paired datasets. Extensive experiments demonstrate that TADER consistently outperforms state-of-the-art methods across both naturalistic and simulated driving environments by incorporating traffic context information into emotion recognition, resulting in improvements of 5% in accuracy on the AIDE and manD datasets.
Index Terms—Driver Emotion Recognition, Multi-Modal Fusion, Human-Centered Automated Driving, Expectation-Deviation-Driven Inference
I. INTRODUCTION
UNDERSTANDING driver states is essential for effective human-vehicle interaction in automated driving systems in which human drivers or safety operators remain involved in vehicle control, supervision, or takeover [1]-[5]. Among various driver states, emotion provides important information about how individuals perceive and evaluate the driving situation and the automated system, as well as their readiness to respond. Emotion recognition is especially critical in automated driving systems under shared control, where operational authority and responsibility are dynamically distributed between the driver and the vehicle. Recognizing driver emotion can help automated driving systems infer the driver's psychological state, perception of surrounding risks, and potential response intentions. Such information enables the system to anticipate driver needs and adapt its assistance strategy accordingly, thereby supporting safer and more human-centered interaction.
Most existing approaches formulate driver emotion recognition as a pattern recognition problem based on in-cabin signals such as facial expression, body posture, hand gestures, and speech [6]–[18]. Early research focuses almost exclusively on facial information. For example, Ref [6] proposes a high-purity feature separation framework for robust driver emotion recognition in scenarios with heterogeneous drivers and illumination conditions. Ref [7] proposes a cross-dataset driver emotion recognition method that exploits global discriminative information and local structural knowledge to address the distribution mismatch between offline training data and real-time on-road driving scenarios. However, these methods rely solely on facial expression analysis, which is highly sensitive to occlusion, lighting variation, and individual differences, thereby leading to frequent misclassifications. Subsequent studies extend facial analysis by incorporating additional in-cabin signals. Ref [8] utilizes a Convolution Bidirectional Long Short-term Memory Neural Network to predict the driver's emotion based on geometric features extracted from facial skin information and heart rate changes in RGB components. Ref [9] proposes a biographical-feature-augmented driver emotion detection method to recognize driver emotion based on facial expression and personal characteristics, including age, gender, and driving experience. Despite these advances, existing approaches tend to model correlations between emotion and in-cabin signals, while overlooking the complementary traffic context evidence contained in dynamic interactions among vehicles.
In driving scenarios, driver emotion is fundamentally shaped by the external traffic environment, as emotions emerge from continuous interactions with surrounding vehicles. To the best of our knowledge, only Ref. [19] incorporates external traffic information beyond the vehicle cabin, which develops a multimodal fusion framework based on static features from the driver's eyes, the vehicle, and the surrounding environment. However, this work considers only the distance to the preceding vehicle and does not explicitly model the dynamic and time-evolving interactions between the ego vehicle and surrounding traffic, thereby limiting its ability to capture the traffic context in which driver emotions occur.
Existing cognitive studies have shown that emotional responses are closely associated with expectations about how situations will evolve [20]–[22]. Specifically, emotional responses can be triggered when observed outcomes deviate from these expectations. In driving scenarios, such expecta-
The authors are with the Department of Civil and Environmental Engineering, National University of Singapore, Singapore 117576. Email: longhao.yan@u.nus.edu, jh.liang0523@gmail.com, kaidi.yang@nus.edu.sg. Corresponding author: Kaidi Yang.
This research was supported by the Singapore Ministry of Education (MOE) under its AcRF Tier 1 Grant (A-8000404-01-00).
tion deviations can be represented by discrepancies between predicted and observed vehicle trajectories. However, existing driver emotion recognition methods rarely exploit such insights.
Statement of Contribution. To address these research gaps, this paper introduces a traffic-context-aware driver emotion recognition framework, termed Traffic-Context-Aware Driver Emotion Recognition (TADER). The proposed framework integrates in-cabin driver signals with out-of-cabin observations of surrounding traffic and characterizes traffic context through expectation deviations between predicted and observed vehicle trajectories. Our contribution is threefold. First, TADER is among the first attempts to explicitly incorporate dynamic traffic context information into driver emotion recognition, with a particular focus on expectation deviations in multi-vehicle interactions. Second, we characterize such expectation deviations using a vehicle trajectory predictor and integrate the resulting traffic context representation with in-cabin visual information through an attention-based embedding fusion mechanism for driver emotion recognition. Third, to address the scarcity of datasets that jointly align in-cabin visual data with external vehicle trajectories, we leverage transfer learning from trajectory prediction models trained on large-scale public driving datasets to improve generalization under limited paired data.
The remainder of this paper is organized as follows. Section II describes the problem formulation. Section III describes the details of our TADER method. Section IV provides extensive experimental comparison and evaluation. Section V concludes the paper and presents future work.
We discretize the considered time horizon into time intervals of length (e.g., 3 seconds), indexed by , over which emotion recognition is performed. This is because driver emotion typically evolves over short temporal windows rather than at individual time steps. Each interval is assigned a discrete ground-truth emotion label from the set . For each interval , we consider historical trajectories over a time horizon and realized trajectories over a prediction horizon , where and are typically chosen to be successive in time. Let denote the historical trajectories of all vehicles in , where represents the two-dimensional position of vehicle at time . For each vehicle , let denote its ground-truth trajectory over the prediction horizon , and let denote the ground-truth trajectories of all vehicles, ordered consistently with the vehicle nodes in .
Driver state information, e.g., facial expressions and body posture, is extracted from in-cabin video streams captured by a driver-facing camera. The ego vehicle's position is measured by onboard localization devices such as GPS, and the positions of surrounding vehicles can be extracted from ego-vehicle onboard sensors (e.g., camera videos or LiDAR point clouds) or directly communicated via connected vehicle technologies.
Given the synchronized in-cabin observations , historical vehicle trajectories , and the ground-truth trajectories during the prediction horizon, the goal of this study is to recognize the driver's emotion by jointly exploiting observable in-cabin responses and the traffic interaction context in which those responses occur. For brevity, we consider a single time interval by default in the remainder of this chapter and omit the index when no ambiguity arises.
III. METHODOLOGY
We propose a traffic-context-aware driver emotion recognition (TADER) framework that explicitly incorporates out-of-cabin multi-vehicle interaction information into emotion recognition. In this framework, expectation deviation, defined as the mismatch between predicted and observed vehicle trajectories, is used to characterize traffic context changes associated with driver emotion. Here, we use predicted trajectories to represent driver expectations for two reasons. First, driver emotion and behavior are inherently shaped by the motion patterns of surrounding vehicles, which are naturally captured by their trajectories. Second, drivers continuously form internal predictive models of how surrounding vehicles are likely to evolve, interpret ongoing traffic situations accordingly, and guide their actions. When the actual trajectories of vehicles deviate from these internal predictions, the resulting expectation deviation can provide contextual evidence of cognitive evaluations related to uncertainty, risk, or unexpected events that are reflected in emotional responses.
As illustrated in Fig. 1, the proposed traffic-context-aware driver emotion recognition framework consists of two main components: (1) a vision-based base recognizer that extracts spatiotemporal representations from in-cabin driver facial images to provide a visual signal over emotional states (see Section III-A) and (2) a traffic-context-aware module that quantifies the expectation deviation from out-of-cabin traffic scenes and integrates such deviation information into the base recognizer via attention-based embedding fusion (see Section III-B). Moreover, we address a key practical challenge in implementing the proposed framework, i.e., the limited availability of datasets that jointly align in-cabin visual data with external vehicle trajectories. To this end, we develop a transfer learning-based strategy that first learns a generalizable trajectory prediction model from large-scale open naturalistic datasets and then transfers the learned representations to a small dataset containing paired in-cabin and out-of-cabin data, as detailed in Section III-C.

Fig. 1: Framework of the traffic-context-aware driver emotion recognition method
A. Vision-Based Base Recognizer
The base module of our framework is a vision-based emotion recognizer that directly infers driver emotion from in-cabin driver-facing camera data. This choice reflects the prevailing pattern recognition paradigm in emotion recognition relying solely on visual information. Specifically, we adopt the Context-Aware Emotion Recognition Network (CAERNet) [23], which jointly models facial expressions and background information from in-cabin images. Note that CAERNet is selected for its strong empirical performance, and the proposed methodological framework is readily applicable to other vision-based emotion recognition architectures.
At each time interval , CAERNet decomposes in-cabin driver-facing camera data into a facial stream and a background stream . The facial stream is used to recognize facial expressions, and the background stream captures auxiliary information such as body posture and gesture.
CAERNet adopts a dual-branch encoder based on three-dimensional convolutional neural networks (CNNs) to extract spatiotemporal representations from both facial and background streams, i.e.,
An attention mechanism is then used to emphasize informative spatial regions in the background stream, i.e.,
where denotes the normalized attention weight at pixel , representing the relative importance of each spatial feature in .
The extracted facial features and refined background features are then fused in the decoder using a fusion mechanism with learnable weights. This mechanism calculates a weighted concatenation , where and are learnable coefficients to balance the contributions of the facial and background modalities. This concatenation is then processed by CNN blocks to produce the final visual feature embedding :
The emotion distribution is then predicted as
where and denote learnable parameters.
Finally, we define a vision-based cross-entropy (CE) loss with respect to the ground-truth emotion label :
B. Traffic-Context-Aware Fusion Module
In this subsection, we introduce a traffic-context-aware fusion module that augments the base recognizer, which corresponds to prevailing vision-based emotion recognizers relying solely on driver-facing camera data. Specifically, this module characterizes traffic context through discrepancies between predicted and observed multi-vehicle dynamics. This module comprises two components: (i) an expectation-deviation-based traffic context feature extraction component that represents traffic context using discrepancies between predicted and observed vehicle trajectories (Section III-B1) and (ii) an attention-based embedding fusion component that integrates traffic context features with visual embeddings from driver-facing cameras to produce coherent emotion recognition outputs (Section III-B2).
- Expectation-Deviation-Based traffic context Feature Extraction: This module extracts traffic context features through two key components: (i) expectation deviation, which is quantified by comparing predicted and observed vehicle trajectories, and (ii) traffic context encoding, which maps expectation deviations to embeddings and, in turn, to recognized driver emotions.
(i) Expectation deviation quantification. This component quantifies expectations by predicting vehicle trajectories based on the out-of-cabin traffic context, derived by modeling spatiotemporal interactions among vehicles. Accordingly, we design a trajectory prediction model based on the Pishgu architecture [24], which captures interaction-aware motion dynamics among vehicles to generate expected trajectories. We extend this model to predict the future trajectory of every vehicle by producing a probabilistic trajectory distribution from the joint historical observations. Notice that the predictor can be instantiated by any architecture that models the surrounding dynamics as interaction graphs to predict future trajectories.
Using the interaction graph , historical trajectories , and ground-truth trajectories defined in Section II, we characterize the expectation as the predicted trajectories over conditioned on the historical trajectories over . To better capture motion dynamics, let denote the relative position increments of the vehicles between consecutive time steps.
Using the constructed graph representation, we employ a Graph Isomorphism Network (GIN) to capture interactions among agents by encoding their flattened historical trajectories. Specifically, the GIN aggregates messages over the graph G to produce the node-wise interaction-aware representation , whose elements correspond to the vehicle nodes in V:
Subsequently, we fuse with the historical trajectories via channel-wise concatenation to preserve both interaction contexts and motion details: .
The combined feature is then refined through a sequence of convolutional blocks Conv2d. Each block incorporates a Convolutional Block Attention Module (CBAM) to sequentially apply channel and spatial attention, thereby emphasizing key motion-related patterns:
where denotes the block index. This hierarchical structure enables a progressive extraction of important spatio-temporal dependencies from the fused representation. The extracted representation is used to generate vehicle-specific Gaussian parameters for the future trajectories of all vehicles in :
where is a small positive constant added for numerical stability. The resulting set of distributions defines the predicted future trajectories of the ego vehicle and its surrounding vehicles. For each vehicle , its expectation deviation and prediction confidence are defined as
where is the expectation deviation associated with vehicle , and denotes the prediction confidence quantified by the covariance-normalized agreement between the observed and predicted trajectories. The multi-vehicle quantities are then organized according to the node order in :
and the traffic context representation is constructed as
which jointly models the actual multi-vehicle trajectories, vehicle-specific prediction confidence, and multi-vehicle expectation deviations.
(ii) Traffic context encoding. Building on the multi-vehicle deviation-based traffic context representation s, we introduce a traffic context encoding component that fuses the actual trajectories , vehicle-specific prediction confidence , and multi-vehicle expectation deviations d to produce a compact contextual representation. Specifically, self-attention is applied over the expectation-deviation sequences d to capture key temporal patterns and dependencies across vehicles, while the actual trajectories and prediction confidence are transformed via a fully connected layer. The resulting representations are concatenated to form the final traffic context embedding:
We then compute the emotion distribution from the resulting multi-vehicle traffic context embedding:
(14) where and are learnable parameters.
The traffic-context-based CE loss is accordingly defined for the expectation-deviation-based module:
- Attention-Based Embedding Fusion: After extracting expectation-deviation-based traffic context embedding, we formulate emotion recognition as a traffic-context-aware representation learning problem that jointly exploits traffic context information and in-cabin visual information.
This formulation is implemented by residual multi-head cross-attention, in which the visual embedding serves as the query and the traffic context embedding provides the key and value. To enable adaptive attention weighting between these two embeddings, a fixed zero key-value pair is appended after projection in each attention head, with both positions remaining unmasked. This allows the visual query to regulate the contribution of traffic context information. Specifically, for each attention head , the projected query, key, and value are given by , , and , respectively. The resulting fused embedding is computed as
where denotes the attention weight assigned to the traffic context in head , denotes the number of attention heads, is the feature dimension of each head, and and are learnable parameters that project the attention output to the dimension of . The attention-weighted traffic context information is then integrated with the visual embedding through the residual connection, allowing both modalities to contribute to the final emotion prediction.
The fused embedding is then used to predict the emotion distribution:
where and are learnable parameters.
A fusion-based CE loss is defined for the attention-based embedding fusion component to align the fused emotion prediction with the ground truth:
Finally, the overall training loss for the emotion recognition task is defined as the combination of vision-based, traffic-context-based, and fusion-based losses.
This formulation jointly supervises the visual, traffic context, and fused emotion predictions. The weights balance the contributions of the respective loss components.
C. Transfer Learning for Limited Paired Data
Training the traffic-context-aware model presents a fundamental challenge in data acquisition, as it requires paired observations of in-cabin driver states and out-of-cabin traffic scenes, which are costly to collect at scale. In contrast, large-scale open naturalistic driving datasets are widely available and provide rich coverage of diverse traffic scenes. Moreover, drivers' interaction patterns with surrounding traffic exhibit strong regularities across contexts, enabling behavioral generalization beyond specific drivers or datasets. Therefore, we leverage transfer learning that extracts generalizable trajectory representations from large-scale naturalistic driving datasets and subsequently aligns them with limited paired data for traffic-context-aware emotion recognition. Note that the transfer learning strategy can also be applied to augment in-cabin driver-facing camera data, for which we omit for brevity.
Specifically, we implement transfer learning mainly for trajectory prediction. To this end, we maintain two trajectory prediction models (see Section III-B1): one for the source domain (i.e., a large-scale naturalistic driving dataset, denoted as S) capturing generalizable driving behaviors, and one for the target domain (i.e., a small dataset containing paired driver states and traffic scenes, denoted as A). Both models are initialized with the trajectory predictor pretrained on the source domain S. During the training of the emotion recognition framework, the source-domain model remains fixed, while the target-domain model is updated using the limited paired data in the target domain, with two complementary objectives: (1) fitting the predicted trajectories to the ground-truth trajectories in the target domain using a Gaussian negative log-likelihood (NLL) loss, and (2) aligning the predicted trajectory distributions of the source and target models by minimizing their Kullback-Leibler (KL) divergence.
where controls the contribution of the domain alignment term.
To sum up, the overall training loss of all modules is:
where balances the contribution of the trajectory prediction loss.
Our proposed method is summarized in Algorithm 1.
IV. RESULTS
In this section, we conduct experiments to evaluate the proposed TADER framework on two multimodal driver emotion datasets. Section IV-A introduces the benchmark methods, Section IV-B details the experimental setup and implementation details, Section IV-C reports the emotion recognition performance and analyzes the contributions of the visual and traffic context branches, Section IV-D presents ablation studies, and Section IV-E performs sensitivity analyses.
A. Benchmarks
The following emotion recognition benchmarks are compared to evaluate the proposed method:
• MTCNN-D [25]. This benchmark combines the Multi-Task Cascaded Convolutional Networks (MTCNN) framework with an LSTM module to model temporal
Algorithm 1 Traffic-Context-Aware Driver Emotion Recognition with Expectation Deviation
Require: Multi-modal dataset with in-cabin video streams and synchronized traffic scene information; trajectory prediction models pretrained on large-scale naturalistic driving datasets
Ensure: Emotion Recognition
1: for each mini-batch of data samples do
2: Extract facial representation and background representation from in-cabin images
3: Fuse representations and get visual embedding
4: Compute emotion distribution using visual embedding
5: Predict the vehicle-specific future-trajectory distributions from the joint historical trajectories and interaction graph
6: For each , compute and , and organize them as , , and
7: Form traffic context representation and encode it into the traffic context embedding
8: Compute emotion distribution using traffic context embedding
9: Obtain using residual multi-head cross-attention with a fixed zero key-value pair in each head.
10: Compute emotion distribution using fused embedding
11: Compute the total loss and update trainable parameters via backpropagation
12: end for
dynamics across sequential facial frames. It represents a conventional CNN–LSTM dynamic facial emotion recognition baseline without traffic context information.
• MAE [26]. This benchmark implements a self-supervised dynamic facial expression recognition (FER) method based on masked autoencoders. A local-global interaction transformer is employed to enhance static appearance reconstruction with explicit temporal facial motion modeling. This benchmark represents FER methods that leverage large-scale pretraining to improve performance.
• IAL [27]. This benchmark implements a transformer-based method for FER, which introduces the intensity-aware loss to distinguish the image samples with relatively low expression intensities. This benchmark represents a state-of-the-art FER method that relies solely on facial features for emotion recognition.
• CAERNet [23]. This benchmark implements a context-aware FER approach that jointly leverages facial expressions and background information to enhance emotion recognition. It employs an attention mechanism that masks facial regions to emphasize background information. This method represents FER approaches that consider the background information of images (e.g., driver posture) rather than focusing solely on facial features.
• TADER (Ours). This benchmark implements our proposed traffic-context-aware emotion recognition framework. The visual branch is instantiated using MTCNN-D, MAE, IAL, or CAERNet in the benchmark comparisons, while CAERNet serves as the default backbone for the subsequent ablation and sensitivity analyses. By jointly modeling in-cabin visual information and multi-vehicle traffic context information, TADER captures emotion through an explicit modeling of traffic context, enabling a comprehensive and situationally grounded understanding of driver emotion in complex driving environments.
The comparison between TADER and the visual-only benchmarks evaluates whether traffic context provides additional information beyond facial expression modeling. In particular, the matched comparison between CAERNet and TADER separates the contribution of the traffic context branch from differences in visual-backbone capacity.
B. Experiment Setup and Implementation Details

(a) Representative samples of the AIDE dataset.

(b) Representative samples of the manD dataset.
Fig. 2: Illustration of the two multimodal driver emotion datasets used in this work. (a) AIDE captures naturalistic on-road driving with synchronized multi-view videos and five emotion categories. (b) manD contains controlled driving-simulator observations with synchronized facial video and vehicle and environment states labeled with five emotional states.
- Datasets: We utilize two multimodal driver emotion datasets: the AssIstive Driving pErception (AIDE) dataset [28] and manD 1.0 [29] to evaluate our framework across both naturalistic on-road driving scenarios and simulated laboratory driving conditions, thereby demonstrating its robustness and applicability.
• AIDE captures naturalistic on-road driving conditions with synchronized multi-view camera recordings (incabin, front, left, and right), providing paired observations of driver states and traffic scenes. Each AIDE data sample consists of a 3-second driving clip (45 frames per view), annotated with an emotion category
{Anxiety, Peace, Weariness, Happiness, Anger}. Vehicle trajectories are obtained via YOLO-based detection and multi-object tracking [30], projected into a bird's-eye-view (BEV) coordinate system. Only lane-changing and forward-driving scenes are included, as they are both behaviorally expressive and emotionally informative.
• manD is collected in a laboratory-based driving simulator, allowing controlled elicitation and repeatable measurement of emotional responses. It provides synchronized driver facial video, vehicle status signals, and environment perception measurements. We retain the emotion-induction phases of the emotional scenarios and the no-emotion scenario, assigning the corresponding condition labels to the resulting clips.
To ensure consistent evaluation across datasets, we process AIDE and manD into a unified representation: each sample is segmented into a 3-second clip at 15 Hz, facial features are extracted from the in-cabin or driver-facing view, and vehicle motions are transformed into a BEV trajectory sequence aligned frame-by-frame with the visual inputs. For trajectory representation, we retain 10 observed steps and 35 future steps to characterize the driving context and behavioral expectations. Both datasets are split into 70% training, 15% validation and 15% testing. To mitigate class imbalance and ensure consistent learning conditions across datasets, we perform class balancing separately on AIDE and manD to obtain an approximately uniform distribution over emotion categories. Fig. 2 presents representative examples from both datasets.
- Implementation Details: We implement all benchmark methods using the default hyperparameter settings reported in their original publications, with minor adaptations to align their outputs with the five emotion categories defined in AIDE and manD.
For our proposed method, the visual branch processes 16 frames for each interval. The trajectory branch uses historical steps and future steps, with at most 12 vehicles represented in the interaction graph. The traffic context encoders contain 128 hidden units, while the internal trajectory predictor contains 64 hidden units. The trajectory predictor is pretrained on the large-scale naturalistic driving dataset NGSIM [31] and subsequently adapted to AIDE and manD using the transfer learning strategy described in Section III-C. The highD dataset [32] is used as an alternative source dataset in the source-domain sensitivity analysis.
All models are optimized for 50 epochs using Adam with a learning rate of , a weight decay of , and a batch size of 40. The trajectory-loss weight is set to 0.05, and the source-target alignment coefficient is set to 0.5. All models are implemented in PyTorch and trained on a high-performance computing platform equipped with NVIDIA H100 and A40 GPUs.
C. Performance Analysis
In this subsection, we evaluate the emotion recognition performance of TADER on the AIDE and manD test sets. We adopt class-wise recall, overall accuracy, and Macro-F1 as the primary evaluation metrics, with all results reported as the mean ± standard deviation over five runs using different random seeds. For overall accuracy and Macro-F1, we report both fine-grained and coarse-grained evaluations. For AIDE, the coarse-grained categories are defined as Negative (Anxiety, Weariness, and Anger), Neutral (Peace), and Positive (Happiness); for manD, they are defined as Negative (Fear, Sadness, Surprise, and Anger) and Neutral (No Emotion). The coarse-grained predictions are obtained by mapping both the ground-truth and predicted fine-grained labels to these aggregated categories before recomputing accuracy and Macro-F1. Table I summarizes the comparison with the visual-only benchmarks. We further analyze the contributions of the visual and traffic context branches using confusion matrices in Fig. 3 and t-SNE visualizations in Fig. 4.
As shown in Table I, the visual-only baselines exhibit substantial performance gaps. MTCNN-D yields the poorest results, with Macro-F1 scores of 67.26% on AIDE and 53.42% on manD. MAE and IAL improve substantially over this conventional baseline, while CAERNet achieves the highest fine-grained Macro-F1 among the visual-only baselines, with scores of 88.93% and 90.01% on AIDE and manD, respectively.
Against the matched CAERNet baseline, TADER consistently improves recognition performance on both datasets. On AIDE, Macro-F1 increases from 88.93% to 93.75%, while on manD it increases from 90.01% to 95.30%. Moreover, TADER improves both fine-grained and coarse-grained Macro-F1 over the corresponding visual-only baseline for all four evaluated visual backbones. The largest gains are observed with MTCNN-D, while improvements remain evident for the other three visual backbones. This pattern indicates that traffic context can compensate for ambiguous visual representations while still providing complementary information when the visual representation is already strong. The coarse-grained results further indicate improved discrimination at broader affective levels, particularly on manD, where the evaluation mainly distinguishes emotional responses from No Emotion. The fine-grained results remain the primary evidence for distinguishing individual emotion categories.
The class-wise results further show emotion-specific and dataset-dependent improvements. On AIDE, the largest improvement over CAERNet occurs for Anxiety, whose recall increases from 83.42% to 94.58%. On manD, particularly large gains are observed for Anger and No Emotion. These results indicate that traffic context provides complementary information beyond visual appearance, although the magnitude of its contribution varies across emotion categories and datasets.
Value of multimodal fusion. We further examine how the visual and traffic context branches contribute to the final recognition using the confusion matrices in Fig. 3 and the t-SNE visualizations in Fig. 4. The two branches exhibit clearly different recognition patterns on both datasets, showing that they provide different sources of information for driver emotion recognition. Notice that the visual outputs analyzed here are obtained from the visual branch within the jointly
TABLE I: Performance comparison of different benchmarks on AIDE and manD.
(a) Results on AIDE.
| Benchmark | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Anxiety | Peace | Weariness | Happiness | Anger | Acc | F1 | Acc | F1 | |
| MTCNN-D | 37.23 ± 6.73 | 98.80 ± 1.20 | 73.98 ± 8.43 | 77.59 ± 3.91 | 55.66 ± 2.88 | 68.65 ± 0.92 | 67.26 ± 0.50 | 84.00 ± 1.80 | 82.45 ± 1.65 |
| MAE | 72.78 ± 12.80 | 86.28 ± 5.75 | 85.55 ± 2.33 | 82.66 ± 9.75 | 77.00 ± 16.49 | 80.86 ± 7.73 | 80.82 ± 7.90 | 87.17 ± 2.61 | 85.52 ± 3.17 |
| IAL | 74.30 ± 7.25 | 95.90 ± 1.88 | 83.90 ± 4.48 | 89.10 ± 4.16 | 90.40 ± 7.06 | 86.90 ± 1.22 | 86.90 ± 1.57 | 91.20 ± 1.29 | 90.00 ± 0.89 |
| CAERNet | 83.42 ± 1.83 | 88.96 ± 3.10 | 92.46 ± 1.67 | 91.13 ± 0.54 | 88.48 ± 5.54 | 88.89 ± 0.82 | 88.93 ± 0.81 | 90.80 ± 0.81 | 89.63 ± 0.85 |
| TADER (MTCNN-D) | 81.37 ± 3.96 | 92.10 ± 2.67 | 89.08 ± 2.39 | 91.86 ± 2.06 | 78.72 ± 6.36 | 86.63 ± 0.97 | 86.55 ± 1.01 | 92.53 ± 0.58 | 91.58 ± 0.69 |
| TADER (MAE) | 85.76 ± 4.00 | 89.37 ± 1.35 | 89.49 ± 2.10 | 90.94 ± 0.69 | 90.46 ± 2.31 | 89.20 ± 1.25 | 89.26 ± 1.28 | 90.80 ± 0.65 | 89.88 ± 0.74 |
| TADER (IAL) | 86.00 ± 4.12 | 95.90 ± 2.13 | 90.10 ± 3.12 | 88.20 ± 9.22 | 90.10 ± 4.43 | 90.10 ± 2.17 | 90.00 ± 2.16 | 94.30 ± 0.67 | 93.40 ± 1.31 |
| TADER (CAERNet) | 94.58 ± 2.59 | 93.37 ± 1.13 | 94.70 ± 1.67 | 95.54 ± 0.69 | 90.36 ± 1.90 | 93.71 ± 0.79 | 93.75 ± 0.79 | 95.33 ± 0.48 | 94.34 ± 0.53 |
(b) Results on manD.
| Benchmark | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Fear | No Emo. | Sadness | Surprise | Anger | Acc | F1 | Acc | F1 | |
| MTCNN-D | 99.13 ± 1.55 | 24.29 ± 10.38 | 81.54 ± 6.20 | 19.21 ± 10.63 | 57.27 ± 7.81 | 56.21 ± 0.93 | 53.42 ± 2.79 | 77.36 ± 2.39 | 57.73 ± 2.72 |
| MAE | 67.10 ± 1.23 | 97.12 ± 1.52 | 92.62 ± 2.10 | 75.32 ± 1.71 | 93.67 ± 0.89 | 85.17 ± 1.42 | 86.02 ± 1.28 | 85.18 ± 1.42 | 81.14 ± 1.63 |
| IAL | 97.25 ± 0.55 | 69.21 ± 1.84 | 98.99 ± 0.33 | 93.46 ± 0.66 | 72.10 ± 1.45 | 86.20 ± 0.50 | 85.72 ± 0.49 | 92.78 ± 0.29 | 87.47 ± 0.55 |
| CAERNet | 97.86 ± 0.20 | 88.84 ± 4.09 | 94.69 ± 1.56 | 84.86 ± 2.46 | 83.90 ± 3.47 | 90.02 ± 1.20 | 90.01 ± 1.18 | 94.11 ± 0.52 | 91.03 ± 0.81 |
| TADER (MTCNN-D) | 92.00 ± 0.00 | 82.25 ± 3.88 | 90.29 ± 1.70 | 77.39 ± 5.85 | 87.63 ± 1.45 | 85.89 ± 0.66 | 85.71 ± 0.79 | 93.25 ± 0.57 | 89.36 ± 1.05 |
| TADER (MAE) | 99.20 ± 0.47 | 92.36 ± 1.29 | 95.22 ± 2.48 | 86.28 ± 2.99 | 88.99 ± 3.14 | 92.39 ± 1.09 | 92.41 ± 1.09 | 96.71 ± 0.58 | 94.88 ± 0.84 |
| TADER (IAL) | 96.40 ± 2.49 | 90.60 ± 3.40 | 90.90 ± 3.93 | 83.80 ± 3.08 | 98.20 ± 0.32 | 92.00 ± 0.97 | 91.90 ± 0.95 | 97.10 ± 0.55 | 95.40 ± 0.88 |
| TADER (CAERNet) | 99.57 ± 0.47 | 95.93 ± 2.54 | 97.87 ± 0.60 | 87.94 ± 1.85 | 95.32 ± 1.11 | 95.31 ± 0.89 | 95.30 ± 0.89 | 98.26 ± 0.62 | 97.28 ± 0.96 |
trained TADER framework and therefore differ from the independently trained CAERNet benchmark in Table I.
On AIDE, the visual branch already provides strong emotion-discriminative information, whereas the Traffic-only representation is substantially weaker when used independently. Nevertheless, the two representations exhibit different error patterns. The Traffic-only model retains meaningful discrimination for several categories, including Anxiety and Peace, while fusion further improves the visual representation, most notably increasing Anxiety recall from 87.2% to 94.6%. This indicates that traffic context is not sufficient for fine-grained emotion recognition by itself, but provides complementary information that helps resolve visually ambiguous cases.
The complementarity is more evident on manD. Although the visual branch provides the stronger overall representation, the Traffic-only model shows substantial discriminative capability for specific categories, particularly Anger (93.3%), No Emotion (82.1%), and Surprise (75.7%). Notably, Anger recall increases from 87.8% in the visual branch to 95.3% after fusion, while No Emotion increases from 92.5% to 95.9%. These results show that the traffic context representation captures class-dependent information that differs from facial appearance, allowing the fused model to exploit complementary evidence from the two modalities.
The t-SNE visualizations in Fig. 4 further illustrate this complementarity. The visual outputs already show relatively clear separation among emotion categories on both datasets, whereas the traffic context outputs exhibit much greater overlap, particularly on manD. This reflects the different roles of the two branches: the visual branch provides direct evidence of the driver's affective state, while the traffic context branch captures additional information from multi-vehicle motion and expectation deviation. After fusion, the output distributions become more compact and more clearly separated. This improvement is consistent with the confusion-matrix gains for Anxiety and Anger on AIDE and for Anger and No Emotion on manD. The results show that traffic context information complements the visual representation by providing additional information for visually ambiguous cases, leading to more reliable final emotion recognition.
D. Ablation Study
In this subsection, we conduct three complementary ablation studies to examine the traffic context representation in TADER. First, we remove the actual trajectories , expectation deviations d, and prediction confidence individually to quantify their conditional contributions when the other two components are retained. Second, we vary the represented vehicle scope among the ego vehicle, surrounding vehicles, and their joint multi-vehicle representation to determine whether either source alone is sufficient. Third, we evaluate the contribution of transfer learning for adapting the trajectory predictor to the target emotion-recognition datasets.
Value of traffic context representation components. The traffic context representation in TADER integrates three complementary components: the actual multi-vehicle trajectories , the expectation deviations d, and the prediction confidence . To isolate their contributions, we remove each component individually while retaining all other settings the same.
For the traffic context branch alone, removing any component reduces Fine-grained Macro-F1 on both datasets. On AIDE, Macro-F1 decreases from 60.37% to 59.93%, 53.28%, and 52.39% when , d, and are removed, respectively. On manD, the corresponding values decrease from 72.22% to 71.99%, 66.49%, and 57.33%. The largest degradation is consistently caused by removing , followed by d, while provides a smaller but positive contribution.

(a) Visual branch on AIDE

(b) Traffic context branch on AIDE

(c) Fused output on AIDE

(d) Visual branch on manD

(e) Traffic context branch on manD

(f) Fused output on manD
Fig. 3: Mean row-normalized confusion matrices over five random seeds on AIDE and manD.

(a) Visual outputs on AIDE

(b) Traffic context outputs on AIDE

(c) Fused outputs on AIDE

(d) Visual outputs on manD

(e) Traffic context outputs on manD

(f) Fused outputs on manD
Fig. 4: Descriptive t-SNE projections of the standardized pre-softmax outputs averaged across five random seeds on AIDE and manD.
TABLE II: Ablation of the traffic context representation components on AIDE and manD.
(a) Results on AIDE.
| Variant | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Anxiety | Peace | Weariness | Happiness | Anger | Acc | F1 | Acc | F1 | |
| TADER (Traffic-only w/o σ) | 67.83 ± 3.65 | 67.23 ± 13.45 | 39.28 ± 3.02 | 49.04 ± 1.63 | 40.24 ± 6.51 | 52.72 ± 2.97 | 52.39 ± 3.05 | 70.84 ± 2.63 | 64.11 ± 3.78 |
| TADER (Traffic-only w/o d) | 70.36 ± 1.37 | 46.75 ± 0.91 | 36.51 ± 7.30 | 52.41 ± 1.20 | 62.41 ± 3.53 | 53.69 ± 1.38 | 53.28 ± 1.56 | 72.84 ± 0.73 | 63.20 ± 0.84 |
| TADER (Traffic-only w/o ρ) | 70.60 ± 1.16 | 68.92 ± 7.20 | 53.13 ± 5.89 | 51.93 ± 5.14 | 54.58 ± 4.03 | 59.83 ± 2.98 | 59.93 ± 3.07 | 77.25 ± 3.90 | 70.32 ± 4.72 |
| TADER (Traffic-only) | 70.60 ± 2.06 | 66.27 ± 10.49 | 56.14 ± 12.41 | 52.77 ± 3.94 | 55.78 ± 4.40 | 60.31 ± 3.97 | 60.37 ± 4.24 | 78.48 ± 3.26 | 71.20 ± 4.83 |
| TADER (Full w/o σ) | 88.76 ± 2.73 | 91.77 ± 3.30 | 93.34 ± 1.89 | 93.10 ± 1.31 | 91.17 ± 3.61 | 91.63 ± 0.37 | 91.67 ± 0.34 | 93.46 ± 0.27 | 92.37 ± 0.28 |
| TADER (Full w/o d) | 90.24 ± 1.56 | 90.84 ± 2.96 | 94.70 ± 1.56 | 93.61 ± 0.91 | 91.69 ± 5.41 | 92.22 ± 0.98 | 92.26 ± 0.97 | 93.86 ± 0.61 | 92.65 ± 0.67 |
| TADER (Full w/o ρ) | 91.33 ± 1.63 | 94.10 ± 1.44 | 95.18 ± 2.13 | 94.70 ± 1.44 | 92.77 ± 4.28 | 93.61 ± 1.03 | 93.66 ± 1.01 | 95.30 ± 0.83 | 94.45 ± 0.90 |
| TADER (Full) | 94.58 ± 2.59 | 93.37 ± 1.13 | 94.70 ± 1.67 | 95.54 ± 0.69 | 90.36 ± 1.90 | 93.71 ± 0.79 | 93.75 ± 0.79 | 95.33 ± 0.48 | 94.34 ± 0.53 |
(b) Results on manD.
| Variant | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Fear | No Emo. | Sadness | Surprise | Anger | Acc | F1 | Acc | F1 | |
| TADER (Traffic-only w/o σ) | 53.48 ± 4.82 | 77.67 ± 2.07 | 16.18 ± 9.72 | 59.13 ± 5.41 | 91.73 ± 0.44 | 59.80 ± 2.20 | 57.33 ± 3.28 | 80.35 ± 1.19 | 74.03 ± 1.28 |
| TADER (Traffic-only w/o d) | 62.10 ± 2.77 | 83.05 ± 0.80 | 30.15 ± 12.35 | 69.39 ± 5.74 | 93.38 ± 1.36 | 67.75 ± 2.39 | 66.49 ± 3.04 | 83.92 ± 2.24 | 78.38 ± 2.29 |
| TADER (Traffic-only w/o ρ) | 69.35 ± 2.03 | 81.96 ± 2.19 | 43.97 ± 6.48 | 74.08 ± 3.42 | 92.59 ± 1.77 | 72.50 ± 1.36 | 71.99 ± 1.47 | 87.43 ± 0.79 | 82.06 ± 0.88 |
| TADER (Traffic-only) | 69.06 ± 1.39 | 82.11 ± 1.07 | 43.46 ± 6.48 | 75.67 ± 3.15 | 93.31 ± 1.74 | 72.83 ± 1.06 | 72.22 ± 1.24 | 87.49 ± 0.66 | 82.15 ± 0.70 |
| TADER (Full w/o σ) | 98.42 ± 0.18 | 94.51 ± 1.30 | 94.18 ± 2.15 | 88.11 ± 1.85 | 93.97 ± 1.60 | 93.75 ± 0.73 | 93.75 ± 0.73 | 96.40 ± 0.41 | 94.52 ± 0.60 |
| TADER (Full w/o d) | 97.82 ± 0.24 | 93.20 ± 2.11 | 95.13 ± 0.95 | 90.06 ± 0.92 | 95.84 ± 0.67 | 94.44 ± 0.41 | 94.44 ± 0.41 | 96.55 ± 0.26 | 94.68 ± 0.42 |
| TADER (Full w/o ρ) | 98.26 ± 0.31 | 93.56 ± 2.03 | 95.28 ± 1.03 | 90.78 ± 1.94 | 95.91 ± 1.06 | 94.71 ± 0.65 | 94.71 ± 0.65 | 96.72 ± 0.40 | 94.94 ± 0.64 |
| TADER (Full) | 99.57 ± 0.47 | 95.93 ± 2.54 | 97.87 ± 0.60 | 87.94 ± 1.85 | 95.32 ± 1.11 | 95.31 ± 0.89 | 95.30 ± 0.89 | 98.26 ± 0.62 | 97.28 ± 0.96 |
The same aggregate ordering is observed in the complete TADER model. On AIDE, removing , d, and reduces Macro-F1 from 93.75% to 93.66%, 92.26%, and 91.67%, respectively. On manD, Macro-F1 decreases from 95.30% to 94.71%, 94.44%, and 93.75%. These results indicate that all three components contribute positively to the mean fine-grained Macro-F1 of the TADER model. Notably, the degradation caused by removing individual traffic context components is substantially larger in the Traffic-only model than in the complete TADER model, indicating that the visual representation can partially compensate for missing traffic context information.
The class-wise results further show that the contribution of each component varies across emotions. Removing an individual component can improve the recall of particular categories while reducing aggregate Accuracy and Macro-F1. Overall, provides the realized motion evidence, d provides expectation-relative information, and supplies covariance-normalized prediction confidence for interpreting the agreement between observed and predicted trajectories.
Value of traffic context scope. We next investigate the value of traffic context scope by comparing ego-only, surrounding-only, and full multi-vehicle representations. The ego-only and surrounding-only variants retain only the corresponding vehicle scope, while the full model jointly represents both the ego vehicle and surrounding vehicles under the same interaction-conditioned trajectory prediction framework.
As reported in Table III, restricting the represented vehicle scope reduces aggregate performance on both datasets. On AIDE, the ego-only and surrounding-only variants achieve Macro-F1 scores of 91.23% and 91.77%, respectively, whereas the full model reaches 93.75%. On manD, the corresponding values are 93.83%, 92.89%, and 95.30%. The relative performance of the two restricted variants reverses across datasets: surrounding-only performs slightly better on AIDE, whereas ego-only performs better on manD. This reversal suggests that there is no universally dominant source of traffic context information. Instead, the relative value of ego and surrounding-vehicle motion depends on the interaction patterns represented in the dataset. Nevertheless, their joint representation consistently achieves the highest aggregate performance, supporting the use of multi-vehicle context rather than an ego-centric or surrounding-only formulation.
Value of transfer learning. Table IV evaluates the contribution of transfer learning for the trajectory predictor. On AIDE, transfer learning increases Fine-grained Macro-F1 from 92.20% to 93.75% and coarse-grained Macro-F1 from 92.64% to 94.34%. On manD, the corresponding values increase from 94.16% to 95.30% and from 94.91% to 97.28%, respectively. These results indicate that transferring trajectory knowledge improves the aggregate emotion-recognition performance, although the class-wise effects remain emotion-dependent.
E. Sensitivity Analysis
In this subsection, we examine the sensitivity of TADER to two implementation choices: the source dataset used to pretrain the interaction-conditioned trajectory predictor and the trajectory predictor architecture. These analyses determine whether the observed gains depend on a specific source-domain trajectory prior or prediction model.
Sensitivity analysis on the trajectory-pretraining source. We first investigate whether TADER is sensitive to the dataset used to pretrain its interaction-conditioned trajectory predictor. Specifically, the predictor is pretrained using either NGSIM or highD before being integrated into the complete recognition framework. As shown in Table V, both pretraining sources support strong performance on AIDE. Using NGSIM pro-
TABLE III: Ablation of the represented vehicle scope on AIDE and manD.
(a) Results on AIDE.
| Variant | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Anxiety | Peace | Weariness | Happiness | Anger | Acc | F1 | Acc | F1 | |
| TADER (Ego only) | 89.69 ± 2.42 | 92.22 ± 1.84 | 93.66 ± 1.08 | 93.54 ± 1.25 | 87.04 ± 5.46 | 91.23 ± 1.03 | 91.23 ± 1.07 | 93.11 ± 0.52 | 92.04 ± 0.49 |
| TADER (Surrounding only) | 89.04 ± 1.31 | 92.53 ± 1.01 | 94.94 ± 1.09 | 92.77 ± 1.48 | 89.16 ± 3.19 | 91.69 ± 0.85 | 91.77 ± 0.86 | 92.94 ± 0.57 | 91.80 ± 0.55 |
| TADER (Full) | 94.58 ± 2.59 | 93.37 ± 1.13 | 94.70 ± 1.67 | 95.54 ± 0.69 | 90.36 ± 1.90 | 93.71 ± 0.79 | 93.75 ± 0.79 | 95.33 ± 0.48 | 94.34 ± 0.53 |
(b) Results on manD.
| Variant | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Fear | No Emo. | Sadness | Surprise | Anger | Acc | F1 | Acc | F1 | |
| TADER (Ego only) | 96.71 ± 0.30 | 94.53 ± 1.13 | 95.01 ± 0.42 | 90.21 ± 2.03 | 92.76 ± 0.69 | 93.84 ± 0.47 | 93.83 ± 0.47 | 95.61 ± 0.35 | 93.41 ± 0.52 |
| TADER (Surrounding only) | 99.49 ± 0.41 | 92.15 ± 2.50 | 97.50 ± 0.60 | 87.15 ± 2.16 | 88.20 ± 2.06 | 92.87 ± 0.67 | 92.89 ± 0.66 | 96.57 ± 0.20 | 94.66 ± 0.39 |
| TADER (Full) | 99.57 ± 0.47 | 95.93 ± 2.54 | 97.87 ± 0.60 | 87.94 ± 1.85 | 95.32 ± 1.11 | 95.31 ± 0.89 | 95.30 ± 0.89 | 98.26 ± 0.62 | 97.28 ± 0.96 |
TABLE IV: Recognition accuracy of transfer learning ablations on AIDE and manD.
(a) Results on AIDE.
| Variant | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Anxiety | Peace | Weariness | Happiness | Anger | Acc | F1 | Acc | F1 | |
| TADER (Full w/o transfer) | 89.45 ± 2.99 | 93.30 ± 2.42 | 93.54 ± 1.63 | 93.54 ± 0.54 | 90.89 ± 1.62 | 92.14 ± 0.66 | 92.20 ± 0.68 | 93.54 ± 0.24 | 92.64 ± 0.37 |
| TADER (Full w/ transfer) | 94.58 ± 2.59 | 93.37 ± 1.13 | 94.70 ± 1.67 | 95.54 ± 0.69 | 90.36 ± 1.90 | 93.71 ± 0.79 | 93.75 ± 0.79 | 95.33 ± 0.48 | 94.34 ± 0.53 |
(b) Results on manD.
| Variant | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Fear | No Emo. | Sadness | Surprise | Anger | Acc | F1 | Acc | F1 | |
| TADER (Full w/o transfer) | 98.57 ± 0.47 | 94.20 ± 2.38 | 97.31 ± 0.42 | 88.53 ± 1.89 | 92.31 ± 2.78 | 94.17 ± 0.88 | 94.16 ± 0.88 | 96.68 ± 0.21 | 94.91 ± 0.36 |
| TADER (Full w/ transfer) | 99.57 ± 0.47 | 95.93 ± 2.54 | 97.87 ± 0.60 | 87.94 ± 1.85 | 95.32 ± 1.11 | 95.31 ± 0.89 | 95.30 ± 0.89 | 98.26 ± 0.62 | 97.28 ± 0.96 |
duces an accuracy of and a Macro-F1 of , while using highD increases these values to and , respectively. The resulting Macro-F1 difference is 0.68 points, indicating that the overall performance of TADER is not strongly dependent on a particular trajectory-pretraining corpus.
When focusing on class-wise changes, we find that relative to NGSIM pretraining, highD pretraining improves the recalls of Peace, Weariness, and Anger by 1.21, 0.24, and 4.22 points, respectively, while reducing Anxiety and Happiness by 1.93 and 0.36 points. Thus, changing the pretraining source does not uniformly improve all categories. Instead, it alters the motion prior learned by the trajectory predictor and consequently redistributes the contribution of traffic context across different emotions. In particular, the substantial increase for Anger and the decrease for Anxiety suggest that these categories benefit from different aspects of the pretrained motion representation. A similar pattern is observed on manD. HighD pretraining increases accuracy from to and Macro-F1 from to , corresponding to improvements of 0.97 and 0.98 points, respectively. The largest class-wise gains occur for Surprise and No Emotion, whose recalls increase by 3.54 and 1.82 points. By contrast, Anger and Fear decrease slightly by 0.28 and 0.22 points, while Sadness remains unchanged. The class-wise shifts across AIDE and manD suggest that different pretraining sources emphasize different motion patterns, causing the traffic context benefit to vary across emotions. However, the consistently strong aggregate performance indicates that TADER can effectively exploit trajectory knowledge learned from either source. Sensitivity analysis on the trajectory predictor architecture. We further examine whether TADER depends on a particular trajectory predictor architecture by comparing Pishgu with Trajectron++. As shown in Table VI, replacing Pishgu with Trajectron++ increases Fine-grained Macro-F1 from to on AIDE and from to on manD. The corresponding coarse-grained Macro-F1 increases from to and from to , respectively. These results indicate that TADER is not tied to a specific trajectory predictor and can benefit from stronger trajectory prediction models.
V. CONCLUSION
In this paper, we propose TADER, a traffic-context-aware driver emotion recognition framework that integrates in-cabin visual signals with out-of-cabin multi-vehicle traffic information. The proposed framework comprises two main components: (1) a vision-based recognizer that extracts spatiotemporal representations from in-cabin facial images to infer driver emotional states, and (2) a traffic context module that establishes interaction-conditioned motion references through probabilistic trajectory prediction and jointly represents realized trajectories , expectation deviations d, and prediction confidence . The two sources of information are integrated
TABLE V: Sensitivity of TADER to the trajectory-predictor pretraining source on AIDE and manD.
(a) Results on AIDE.
| Pretraining Source | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Anxiety | Peace | Weariness | Happiness | Anger | Acc | F1 | Acc | F1 | |
| TADER (Full, NGSIM) | 94.58 ± 2.59 | 93.37 ± 1.13 | 94.70 ± 1.67 | 95.54 ± 0.69 | 90.36 ± 1.90 | 93.71 ± 0.79 | 93.75 ± 0.79 | 95.33 ± 0.48 | 94.34 ± 0.53 |
| TADER (Full, highD) | 92.65 ± 2.15 | 94.58 ± 1.59 | 94.94 ± 1.09 | 95.18 ± 1.76 | 94.58 ± 3.10 | 94.39 ± 0.97 | 94.43 ± 0.98 | 95.88 ± 0.51 | 94.92 ± 0.55 |
(b) Results on manD.
| Pretraining Source | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Fear | No Emo. | Sadness | Surprise | Anger | Acc | F1 | Acc | F1 | |
| TADER (Full, NGSIM) | 99.57 ± 0.47 | 95.93 ± 2.54 | 97.87 ± 0.60 | 87.94 ± 1.85 | 95.32 ± 1.11 | 95.31 ± 0.89 | 95.30 ± 0.89 | 98.26 ± 0.62 | 97.28 ± 0.96 |
| TADER (Full, highD) | 99.35 ± 0.40 | 97.75 ± 0.70 | 97.87 ± 0.31 | 91.48 ± 2.07 | 95.04 ± 1.36 | 96.28 ± 0.34 | 96.28 ± 0.35 | 98.78 ± 0.22 | 98.10 ± 0.33 |
TABLE VI: Recognition accuracy with different trajectory predictor architectures on AIDE and manD.
AIDE
| Variant | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Anxiety | Peace | Weariness | Happiness | Anger | Acc | F1 | Acc | F1 | |
| TADER (Full, Pishgu) | 94.58 ± 2.59 | 93.37 ± 1.13 | 94.70 ± 1.67 | 95.54 ± 0.69 | 90.36 ± 1.90 | 93.71 ± 0.79 | 93.75 ± 0.79 | 95.33 ± 0.48 | 94.34 ± 0.53 |
| TADER (Full, Trajectron++) | 93.01 ± 1.57 | 95.30 ± 0.79 | 94.82 ± 1.39 | 95.30 ± 0.50 | 94.46 ± 2.23 | 94.58 ± 0.47 | 94.63 ± 0.46 | 95.83 ± 0.46 | 94.86 ± 0.43 |
manD
| Variant | Recall of Each Emotion (%) | Fine-grained (%) | Coarse-grained (%) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Fear | No Emo. | Sadness | Surprise | Anger | Acc | F1 | Acc | F1 | |
| TADER (Full, Pishgu) | 99.57 ± 0.47 | 95.93 ± 2.54 | 97.87 ± 0.60 | 87.94 ± 1.85 | 95.32 ± 1.11 | 95.31 ± 0.89 | 95.30 ± 0.89 | 98.26 ± 0.62 | 97.28 ± 0.96 |
| TADER (Full, Trajectron++) | 99.42 ± 0.71 | 97.67 ± 0.20 | 98.09 ± 0.31 | 94.73 ± 1.10 | 97.55 ± 0.86 | 97.49 ± 0.22 | 97.49 ± 0.22 | 99.32 ± 0.04 | 98.93 ± 0.06 |
to provide a more complete representation of driver emotion under ongoing traffic interactions. To address the limited availability of datasets with paired in-cabin visual and external trajectory data, we further introduce a transfer learning strategy that first pretrains the trajectory predictor on large-scale public trajectory data and then transfers the learned interaction knowledge to the target emotion-recognition datasets. Extensive experiments on AIDE and manD show that TADER consistently outperforms state-of-the-art methods across both naturalistic and simulated driving environments, resulting in improvements of 4.82% in accuracy on the AIDE dataset, and improvements of 5.29% in accuracy on the manD dataset.
This work opens several directions for future research. First, we plan to enrich the driving context with additional information, including pedestrian behavior, road topology, and weather conditions, and apply causal inference to better understand the contribution of different contextual factors to driver emotional responses. Second, we plan to develop continual and personalized vehicle control strategies that leverage real-time emotion recognition to adapt vehicle behavior to the driver's affective state and preferences.
REFERENCES
[1] H. Zhu, H. Yang, S. Xu, Y. Ma, S. Zhu, Z. Mao, W. Chen, Z. Hu, R. Pan, Y. Xu et al., “Frequency-encoded eye tracking smart contact lens for human–machine interaction,” Nature Communications, vol. 15, no. 1, p. 3588, 2024.
[2] C.-S. Jiang, Z.-T. Liu, M. Wu, J. She, and W.-H. Cao, “Efficient facial expression recognition with representation reinforcement network and transfer self-training for human–machine interaction,” IEEE Transactions on Industrial Informatics, vol. 19, no. 9, pp. 9943–9952, 2023.
[3] S. An, H. Zhu, C. Guo, B. Fu, C. Song, P. Tao, W. Shang, and T. Deng, "Noncontact human-machine interaction based on hand-responsive infrared structural color," Nature Communications, vol. 13, no. 1, p. 1446, 2022.
[4] Z. Tan, N. Dai, Y. Su, R. Zhang, Y. Li, D. Wu, and S. Li, “Human-machine interaction in intelligent and connected vehicles: A review of status quo, issues, and opportunities,” IEEE Transactions on Intelligent Transportation Systems, vol. 23, no. 9, pp. 13954–13975, 2021.
[5] A. Carfi and F. Mastrogiovanni, “Gesture-based human–machine interaction: Taxonomy, problem definition, and analysis,” IEEE Transactions on Cybernetics, vol. 53, no. 1, pp. 497–513, 2021.
[6] L. Yang, H. Yang, B.-B. Hu, Y. Wang, and C. Lv, “A robust driver emotion recognition method based on high-purity feature separation,” IEEE Transactions on Intelligent Transportation Systems, vol. 24, no. 12, pp. 15092–15104, 2023.
[7] K. Xia, X. Gu, and B. Chen, “Cross-dataset transfer driver expression recognition via global discriminative and local structure knowledge exploitation in shared projection subspace,” IEEE Transactions on Intelligent Transportation Systems, vol. 22, no. 3, pp. 1765–1776, 2020.
[8] G. Du, Z. Wang, B. Gao, S. Mumtaz, K. M. Abualnaja, and C. Du, “A convolution bidirectional long short-term memory neural network for driver emotion recognition,” IEEE Transactions on Intelligent Transportation Systems, vol. 22, no. 7, pp. 4570–4578, 2020.
[9] W. Li, G. Zeng, J. Zhang, Y. Xu, Y. Xing, R. Zhou, G. Guo, Y. Shen, D. Cao, and F.-Y. Wang, “Cogemonet: A cognitive-feature-augmented driver emotion recognition model for smart cockpit,” IEEE Transactions on Computational Social Systems, vol. 9, no. 3, pp. 667–678, 2021.
[10] W. Li, Y. Cui, Y. Ma, X. Chen, G. Li, G. Zeng, G. Guo, and D. Cao, “A spontaneous driver emotion facial expression (defe) dataset for intelligent vehicles: Emotions triggered by video-audio clips in driving scenarios,” IEEE Transactions on Affective Computing, vol. 14, no. 1, pp. 747–760, 2021.
[11] J. Li, L. Yang, C. Lv, Y. Chu, and Y. Liu, “Glf-staf: A global-local-facial spatio-temporal attention fusion approach for driver emotion recognition,” IEEE Transactions on Consumer Electronics, 2025.
[12] W.-Y. Hsu and T.-H. Chiang, “Cross-attribute feature-perceptive driver emotion recognition in real scenarios,” IEEE Transactions on Intelligent Transportation Systems, 2025.
[13] H. Tao and Q. Duan, “Hierarchical attention network with progressive feature fusion for facial expression recognition," Neural Networks, vol. 170, pp. 337–348, 2024.
[14] Y. Chen, J. Li, S. Shan, M. Wang, and R. Hong, “From static to dynamic: Adapting landmark-aware image models for facial expression recognition in videos,” IEEE Transactions on Affective Computing, 2024.
[15] H. Liu, Q. Zhou, C. Zhang, J. Zhu, T. Liu, Z. Zhang, and Y.-F. Li, “Mmatrans: Muscle movement aware representation learning for facial expression recognition via transformers,” IEEE Transactions on Industrial Informatics, 2024.
[16] J. Mao, R. Xu, X. Yin, Y. Chang, B. Nie, A. Huang, and Y. Wang, "Poster++: A simpler and stronger facial expression recognition network," Pattern Recognition, p. 110951, 2024.
[17] P. Malik, J. Singh, F. Ali, S. S. Sehra, and D. Kwak, “Action unit based micro-expression recognition framework for driver emotional state detection,” Scientific Reports, vol. 15, no. 1, p. 27824, 2025.
[18] Z. Chen, X. Feng, and S. Zhang, “Emotion detection and face recognition of drivers in autonomous vehicles in iot platform,” Image and Vision Computing, vol. 128, p. 104569, 2022.
[19] L. Mou, Y. Zhao, C. Zhou, B. Nakisa, M. N. Rastgoo, L. Ma, T. Huang, B. Yin, R. Jain, and W. Gao, “Driver emotion recognition with a hybrid attentional multimodal fusion framework,” IEEE Transactions on Affective Computing, vol. 14, no. 4, pp. 2970–2981, 2023.
[20] J. Heffner, J.-Y. Son, and O. FeldmanHall, “Emotion prediction errors guide socially adaptive behaviour,” Nature Human Behaviour, vol. 5, no. 10, pp. 1391–1401, 2021.
[21] K. Ding, H. Lin, G. Liu, F. Kong, J. Liu, and X. Zhou, “The expectation-updating mechanism in gratitude: A predictive coding perspective.” Emotion, 2024.
[22] J. Heffner, R. Frömer, M. R. Nassar, and O. FeldmanHall, “Separable neural signals for reward and emotion prediction errors,” Nature Communications, vol. 16, no. 1, p. 7849, 2025.
[23] J. Lee, S. Kim, S. Kim, J. Park, and K. Sohn, “Context-aware emotion recognition networks,” in Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019, pp. 10143–10152.
[24] G. Alinezhad Noghre, V. Katariya, A. Danesh Pazho, C. Neff, and H. Tabkhi, “Pishgu: Universal path prediction network architecture for real-time cyber-physical edge systems,” in Proceedings of the ACM/IEEE 14th International Conference on Cyber-Physical Systems (with CPS-IoT Week 2023), 2023, pp. 88–97.
[25] K. Zhang, Z. Zhang, Z. Li, and Y. Qiao, “Joint face detection and alignment using multitask cascaded convolutional networks,” IEEE Signal Processing Letters, vol. 23, no. 10, pp. 1499–1503, 2016.
[26] L. Sun, Z. Lian, B. Liu, and J. Tao, “Mae-dfer: Efficient masked autoencoder for self-supervised dynamic facial expression recognition,” in Proceedings of the 31st ACM International Conference on Multimedia, 2023, pp. 6110–6121.
[27] H. Li, H. Niu, Z. Zhu, and F. Zhao, “Intensity-aware loss for dynamic facial expression recognition in the wild,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 37, no. 1, 2023, pp. 67–75.
[28] D. Yang, S. Huang, Z. Xu, Z. Li, S. Wang, M. Li, Y. Wang, Y. Liu, K. Yang, Z. Chen et al., “Aide: A vision-driven multi-view, multi-modal, multi-tasking dataset for assistive driving perception,” in Proceedings of the IEEE/CVF International Conference on Computer Vision, 2023, pp. 20459–20470.
[29] K. Dargahi Nobari and T. Bertram, “A multimodal driver monitoring benchmark dataset for driver modeling in assisted driving automation,” Scientific Data, vol. 11, no. 1, p. 327, 2024.
[30] G. Jocher, J. Qiu, and A. Chaurasia, “Ultralytics YOLO,” Jan. 2023. [Online]. Available: https://github.com/ultralytics/ultralytics
[31] V. Alexiadis, J. Colyar, J. Halkias, R. Hranac, and G. McHale, “The next generation simulation program,” Institute of Transportation Engineers. ITE Journal, vol. 74, no. 8, p. 22, 2004.
[32] R. Krajewski, J. Bock, L. Kloeker, and L. Eckstein, “The highd dataset: A drone dataset of naturalistic vehicle trajectories on german highways for validation of highly automated driving systems,” in 2018 21st International Conference on Intelligent Transportation Systems (ITSC). IEEE, 2018, pp. 2118–2125.

Longhao Yan received the B.Eng. degree and M.Eng. degree in School of Electronics and Control Engineering from Chang'an University, Xi'an, China, in 2019 and 2022 respectively. He is currently working towards a Ph.D. degree with the National University of Singapore. His research interests include vehicle control and trajectory prediction of intelligent transportation system.

Jinhao Liang received the B.S. degree from School of Mechanical Engineering, Nanjing University of Science and Technology, Nanjing, China, in 2017, and Ph.D. degree from School of Mechanical Engineering, Southeast University, Nanjing, China, in 2022. Now he is a Research Fellow with Department of Civil and Environmental Engineering, National University of Singapore. His research interests include vehicle dynamics and control, and autonomous vehicles.

Kaidi Yang (Member, IEEE) is an Assistant Professor in the Department of Civil and Environmental Engineering at the National University of Singapore. Prior to this, he was a postdoctoral researcher with the Autonomous Systems Lab at Stanford University. He obtained a PhD degree from ETH Zurich and M.Sc. and B.Eng. degrees from Tsinghua University. His main research interest is the operation of future mobility systems enabled by connected and automated vehicles (CAVs) and shared mobility.