Skip to Content
Applied SciencesApplied Sciences
  • Article
  • Open Access

3 August 2026

23 Pages

Cross-Driver Distracted Driving Behavior Recognition with Directional Enhancement and Exponential Weight Smoothing

,
,
and
1
College of Engineering Science and Technology, Shanghai Ocean University, Shanghai 201306, China
2
National Key Laboratory of Human Factors Engineering, Astronaut Research and Training Center, Tsinghua University, Beijing 100094, China
3
China Institute of Marine Technology & Economy, 70 Xueyuan South Rd., Beijing 100081, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section Transportation and Future Mobility

Abstract

Driver distraction recognition is important for in-cabin driver monitoring, but random image splits can overestimate performance because driver identity, in-vehicle background, and scene cues may be shared between training and evaluation data. To improve recognition under the executed driver-disjoint evaluation, this paper proposes Directional Enhancement and Weight Smoothing EfficientNet (DEWS-EfficientNet), a single-frame classification framework built on EfficientNet-B0. The method integrates label-consistent flipping (LCF), a directional enhancement (DE) Block, and exponential weight smoothing (EWS). LCF swaps left- and right-hand phone/texting labels after horizontal flipping. The DE Block uses 3 × 3 depthwise and 1 × 5/5 × 1 asymmetric depthwise convolutions to model local actions and directional patterns. EWS uses smoothed weights for validation and testing without adding an inference branch. Experiments are conducted on AUC Distracted Driver V2 (AUC2) and State Farm Distracted Driver Detection (SFD3) under driver-disjoint splits. DEWS-EfficientNet achieves the best accuracies of 82.39% and 89.00% on AUC2 and SFD3, improving the EfficientNet-B0 baseline by 11.83 and 10.04 percentage points, respectively. Ablation and visualization results further indicate that the proposed components improve recognition performance under the executed driver-disjoint splits while preserving a compact classification pipeline.

1. Introduction

According to the World Health Organization, road traffic injuries remain a major global public safety concern. Distracted driving diverts a driver’s visual, cognitive, or manual resources away from safe driving and typically includes phone use, texting, eating or drinking, operating in-vehicle devices, reaching behind, and talking to passengers. Susanto et al. conducted two 22 factorial driving-simulator experiments with 20 licensed drivers, crossing rural and urban routes with phone-call and texting tasks in hands-free and hand-held modes. Mobile-phone tasks significantly affected mental workload, error frequency, average speed, and lateral-position changes. Texting generally produced greater impairment, while the interaction between traffic environment and hand-held use affected error frequency [1]. Piancastelli decomposed touchscreen interaction into visual reorientation, decision, pointing, actuation, and refocusing phases and compared the numerical estimates with eye-gaze evidence. Measured interactions, particularly multistep navigation and address-entry tasks, required substantially longer visual engagement than idealized models predicted and therefore produced considerable blind-driving distances [2]. Because these behaviors are expressed through coupled changes in hand position, head orientation, body posture, and in-vehicle interaction regions, reliable fine-grained recognition is an important component of driver-state monitoring.
In recent years, deep learning has become the dominant technical route for driver distraction recognition. Convolutional neural networks (CNNs) can automatically learn action representations from in-cabin images, and constrained attention, coordinate attention, and channel attention further strengthen the use of discriminative regions [3,4,5]. Hard spatial attention and lightweight detection frameworks improve recognition from the perspectives of key-region modeling and real-time deployment [6,7,8]. These studies show that the hands, face, and center-console regions are important cues for distracted behavior, but using these cues robustly on unseen drivers remains challenging.
Another key challenge is the evaluation protocol. If adjacent or similar images from the same driver are randomly assigned to both training and test sets, the model may exploit identity-related cues such as clothing, seat background, camera position, and lighting, leading to overoptimistic estimates. Driver-disjoint splitting provides a stricter evaluation of recognition ability on unseen drivers [9,10,11,12]. Therefore, this paper uses driver-disjoint training, validation, and test sets on both AUC2 and SFD3, selects checkpoints by validation Accuracy, and reports the best results according to the table protocol.
Existing studies have explored this problem from key-region constraints, lightweight networks, detection frameworks, and cross-domain generalization. Hard spatial attention methods have verified the importance of local regions such as the hands and head for in-cabin action recognition [6]. Lightweight You Only Look Once (YOLO) detectors and DDR-YOLO improve the real-time detection of distracted driving behavior [7,8], whereas multiscale domain adaptation and domain-generalization methods emphasize the influence of driver, background, and viewpoint differences on practical deployment [9,10].
Beyond driver variation, the classes themselves contain directional semantics and local appearance ambiguities. Left- and right-hand phone use or texting require corresponding label changes after horizontal flipping. Phone use, hair or makeup, and reaching behind may also share visual patterns in which the hand approaches the face or torso. With only global classification supervision, a model can be affected by background and identity bias and may fail to consistently model the directional relation among the hand, head, and in-vehicle regions.
For this reason, simply stacking complex attention modules or adding detection branches is not necessarily the most reliable choice. Complex constraints increase the number of training objectives and the difficulty of parameter tuning, whereas detection-based methods often require additional region annotations or more complex post-processing. For single-frame driver-behavior classification, a preferable strategy is to keep the backbone classification framework simple while making targeted improvements in data augmentation, local directional modeling, and training stability.
Asymmetric convolution is an established operator rather than a new primitive introduced here. Inception replaces a square spatial kernel with sequential one-dimensional kernels to reduce computation [13], and ERFNet embeds such factorization inside residual units for efficient dense prediction [14]. ACNet instead trains parallel square, horizontal, and vertical branches to strengthen a generic kernel skeleton and then algebraically reparameterizes them into one square convolution for deployment [15]. The proposed directional enhancement (DE) Block has a different objective and deployment form: it does not replace a backbone convolution or collapse its branches. Instead, it preserves an independent 3 × 3 local path and a sequential 1 × 5–5 × 1 directional path with intervening nonlinearities, concatenates their complementary responses, mixes channels, and learns a scaled residual correction of high-level driver-behavior features. Because the nonlinear directional path cannot be merged algebraically into the local kernel, the two-path relation remains active during inference. The contribution therefore lies in task-specific local-directional feature refinement for hand–face, hand–console, and arm-extension relations rather than in proposing a new asymmetric kernel.
To address these issues, we propose DEWS-EfficientNet with EfficientNet-B0 [16] as the backbone. At the data level, label-consistent flipping (LCF) applies a deterministic class permutation after horizontal flipping, preserving left–right behavior semantics without adding parameters or inference cost. At the feature level, the DE Block differs from learned channel/spatial attention and global Transformer self-attention [3,4,5,11,12]: it imposes an explicit local horizontal–vertical inductive bias through a parallel 3 × 3 local path and a nonlinear 1 × 5–5 × 1 directional path, followed by lightweight residual correction. At the parameter level, exponential weight smoothing (EWS) averages successive optimization states to reduce checkpoint fluctuation without changing the network topology or adding an inference branch. The three components therefore address label consistency, directional feature refinement, and parameter stability at complementary stages while retaining a single-branch classifier. We evaluate the method on AUC2 and SFD3 using backbone comparisons, a complete 23 factorial ablation, efficiency measurements, confusion matrices, and Grad-CAM visualizations. The remainder of this paper is organized as follows: Section 2 reviews representative methods, Section 3 presents DEWS-EfficientNet, Section 4 reports the experimental design and results, and Section 5 summarizes the findings, limitations, and future work.
The main contributions of this paper are as follows:
(1) We propose label-consistent flipping (LCF), which swaps the labels of left- and right-hand phone-use and texting classes during horizontal flipping. This preserves the diversity benefit of flipping while avoiding the practical problem of supervising a left-hand action as a right-hand action.
(2) We develop a task-oriented DE Block that organizes established asymmetric operators as an independent local path and a nonlinear directional path for high-level driver-behavior refinement. Concatenation, channel mixing, and zero-initialized residual correction strengthen hand–face, hand–console, and arm-extension cues while limiting computational overhead. Used alone, the block improves Accuracy by 5.18 percentage points on AUC2 and 3.69 points on SFD3; its practical role is therefore to reduce fine-grained action ambiguity without introducing a detector, attention branch, or additional annotation requirement.
(3) We introduce exponential weight smoothing (EWS), so that validation and testing use smoothed model weights. EWS does not change the network topology or add inference branches but instead reduces the influence of late-training checkpoint fluctuation on cross-driver evaluation.
(4) The effectiveness of the proposed method is systematically verified on two driver distraction datasets, AUC2 and SFD3. The experiments include comparisons across different backbone networks, EfficientNet-B0 ablation studies, training-process analysis, confusion matrices, and Grad-CAM visualizations. The results show that DEWS improves the recognition performance of different backbone models without introducing an additional inference branch while also enhancing the discrimination of easily confused classes and showing good potential for lightweight deployment.

3. Method

3.1. Overall Framework

The proposed DEWS-EfficientNet consists of a shared classification forward path and training-stage auxiliary strategies, as shown in Figure 1. The input image is processed by LCF and then passed into the EfficientNet-B0 backbone. A DE Block is inserted after the high-level semantic features of Stage 4, followed by a 1 × 1 convolution, global average pooling (GAP), Dropout, and a fully connected layer to output the probabilities of 10 behavior classes. During training, both online parameters and EWS-smoothed parameters are maintained. During validation and testing, the smoothed parameters are used in the same forward path. The dashed region in Figure 1 denotes the complete topology shared by training and inference; LCF and EWS do not introduce additional inference branches.
Figure 1. Overall training and inference framework of DEWS-EfficientNet. LCF is applied before the backbone during training; EWS updates smoothed weights after parameter optimization.
This design places augmentation, directional feature extraction, and parameter smoothing at the input, feature, and optimization levels, respectively. LCF only changes training samples and their labels, the DE Block performs residual enhancement at a single high-level location, and EWS only determines which parameter copy is used for validation and testing. Therefore, the complete model still executes one standard forward pass during inference.

3.2. Label-Consistent Flipping

In driver distraction datasets, left- and right-hand phone use and texting classes have explicit directional semantics. Ordinary horizontal flipping can increase sample diversity, but if the original label is retained after flipping, the image content and supervision become inconsistent. Therefore, this paper applies LCF to keep flipped images and labels aligned. For the i-th training sample, LCF is expressed as:
x′i = Fh(xi),  y′i = π(yi)
where xi and yi denote the original image and its class label, Fh denotes horizontal flipping, and π denotes the label-mapping function during flipping. For the 10 driver behaviors in AUC2 and SFD3, only left-right hand-related classes are swapped:
π(c1) = c3,  π(c3) = c1
π(c2) = c4,  π(c4) = c2
π(ck) = ck,  k ∉ {1, 2, 3, 4}
Here, c1 and c3 correspond to the left- and right-hand texting classes, and c2 and c4 correspond to the left- and right-hand phone-use classes. All other classes retain their original labels after flipping. This strategy preserves the benefit of data augmentation while reducing supervision noise introduced by incorrect augmented labels.

3.3. DE Block: Directional Enhancement Block

Driver distraction classes depend on spatial relations among the hands, face, torso, center console, and rear-seat region. The DE Block uses asymmetric convolution as an established operator to model horizontal and vertical action context. Unlike Inception or ERFNet factorization and ACNet reparameterization [13,14,15], its 1 × 5 and 5 × 1 depthwise convolutions remain a nonlinear directional path in the inference graph and are fused with an independent 3 × 3 local path through concatenation and a 1 × 1 convolution. This cascade has a nominal 5 × 5 support with 10 coefficients per channel rather than 25 for a full 5 × 5 depthwise kernel, while channel mixing and a zero-initialized residual correction refine high-level behavior features without replacing the backbone convolution. The DE Block architecture is illustrated in Figure 2.
Figure 2. Parallel directional enhancement and residual structure of the DE Block.
Let the input high-level feature be X. The local branch extracts neighborhood detail through 3 × 3 depthwise convolution:
Bl = SiLU(BN(DWConv3 × 3(X)))
The directional branch uses 1 × 5 and 5 × 1 asymmetric depthwise convolutions in sequence to model action responses along the horizontal and vertical directions:
Bd = SiLU(BN(DWConv5 × 1(SiLU(BN(DWConv1 × 5(X))))))
The outputs of the two branches are concatenated along the channel dimension and fused by a 1 × 1 convolution:
M = SiLU(BN(Conv1 × 1(Concat(Bl, Bd))))
Finally, the module produces enhanced features in a residual form:
Y = X + γM
where Y denotes the enhanced output feature, and γ is a learnable residual scaling coefficient initialized to 0. This makes the module approximate an identity mapping at the beginning of training and then gradually learn an appropriate directional-enhancement strength. The DE Block does not introduce an additional directional gate or dilated branch, keeping the structure simple and training stable.

3.4. Classification Loss and Weight Smoothing

The feature enhanced by the DE Block is passed to GAP and the classifier to obtain the classification logits of the i-th sample:
z i = F C ( D r o p o u t ( G A P ( Y i ) ) )
p i , k = e x p ( z i , k ) ∑ j = 1 c   e x p ( z i , j ) ,         k = 1,2 , … , C
where zi denotes the C-dimensional logit vector produced by GAP and the classifier for the i-th sample, and zi,k is the unnormalized score assigned to class k; C = 10 is the number of driver-behavior classes, and pi,k denotes the predicted probability that the i-th sample belongs to class k. The model is optimized end to end using the multiclass cross-entropy loss:
  L C E   =   − 1 N ∑ i = 1 N ∑ k = 1 c 𝟙 ( y ᵢ   =   k )   l o g ( p i , k )
where N is the mini-batch size, 𝟙 (·) is the indicator function, and yi is the ground-truth class of the i-th sample. This loss directly maximizes the probability of the ground-truth class and is suitable for the 10-class single-label classification task in this paper. To reduce the influence of single-epoch parameter fluctuation on cross-driver testing, this paper maintains exponentially smoothed weights during training. Let θ(t) denote the online weights after the t-th update and φ(t) denote the corresponding smoothed weights. The EWS update is defined as:
φ(t) = μφ(t − 1) + (1 − μ)θ(t)
where μ is the smoothing coefficient, set to 0.995 in this paper. Training gradients update only the online parameters θ(t), and the smoothed parameters φ(t) are updated after each optimizer step. Validation and testing use φ(t) for inference. Weight averaging can reduce parameter fluctuation between adjacent updates [42]. Because EWS does not change the network topology, its parameter count and single forward-pass computation are the same as those of the online model.

3.5. Training and Inference Procedure

The training and inference protocol is shown in Figure 3. During training, the procedure sequentially performs LCF, shared forward propagation, cross-entropy backpropagation, and online/EWS parameter updates. Validation and testing do not use random augmentation. The smoothed parameters φ are loaded for the shared forward path; the validation set is used for checkpoint selection, and the test set is used for independent evaluation.
Figure 3. Training, model selection, and evaluation procedure of DEWS-EfficientNet. Here, φ* denotes the selected smoothed parameter set used for evaluation, and the superscript * identifies the selected checkpoint.

4. Experiments

This section evaluates DEWS-EfficientNet using driver-disjoint partitions through backbone comparisons, full-factorial ablations, efficiency measurements, confusion matrices, and Grad-CAM visualizations. Unless otherwise stated, the main comparisons use the original driver-disjoint partition and random seed 42; Section 4.5.4 further evaluates two additional driver-disjoint partitions with random seeds 42, 2026, and 3407. Literature values are identified separately.

4.1. Datasets

We use two 10-class in-cabin datasets: State Farm Distracted Driver Detection (SFD3) and the Camera 1 subset of AUC Distracted Driver V2 (AUC2). Both contain safe driving, left- and right-hand texting and phone use, adjusting the radio, drinking, reaching behind, hair or makeup, and talking to a passenger. Figure 4 shows representative samples and the variation in driver posture and interaction regions. The corresponding driver-disjoint sample distributions reported in Table 2 and Table 3 are reproduced from Gao and Liu [3].
Figure 4. Examples of the 10 driver-behavior classes in the AUC2 and SFD3 datasets. (a) AUC2; (b) SFD3.
Table 2. Statistics of the State Farm dataset under the executed driver-disjoint split.
Table 3. Statistics of the AUC2 Camera 1 subset under the executed driver-disjoint split.
Images are grouped by driver before subset assignment so that all images and available acquisition sequences from one driver remain in a single training, validation, or test subset. This prevents identity-related appearance, clothing, camera position, and cabin background from crossing subset boundaries.

4.2. Evaluation Metrics

We report overall Accuracy, Macro-Precision, Macro-Recall, and Macro-F1 using scikit-learn [43]. For class k, TP(k), FP(k), and FN(k) denote true positives, false positives, and false negatives. Precision, Recall, and F1 are computed per class and averaged over the 10 classes. Overall, Accuracy is the ratio of the C correctly classified samples to the N evaluated samples:
A c c = C N
S e n s i t i v i t y ( k ) = T P ( k ) T P ( k ) + F N ( k )
F 1 − S c o r e ( k ) = 2 × p r e c i s i o n × r e c a l l p r e c i s i o n + r e c a l l
P r e c ( k ) = T P ( k ) T P ( k ) + F P ( k )
In addition to recognition performance, this paper reports the number of parameters (#Params), floating-point operations (FLOPs), and single-image inference speed on CPU and GPU, measured as frames per second (FPS), to evaluate deployment efficiency. LCF is used only during training augmentation, and EWS only changes the smoothed weights used for final inference. Neither introduces an additional inference branch. The DE Block performs lightweight residual enhancement only at a high-level feature stage, so its computational overhead remains controlled.

4.3. Comparison Methods

The baseline networks are AlexNet [44], SqueezeNet1.1 [45], ShuffleNetV2 [46], ResNet18 [47], and EfficientNet-B0 [16]. These models cover classical, lightweight, residual, and compound-scaled CNN architectures. A complete 23 factorial design evaluates the isolated and combined effects of LCF, the DE Block, and EWS on EfficientNet-B0. Table 4 summarizes the selected backbone architectures and the application of DEWS.
Table 4. CNN architectures evaluated in this paper.

4.4. Experimental Details

All experiments use PyTorch 1.11.0 and torchvision 0.12.0 on an NVIDIA GeForce RTX 4070 GPU. Each backbone is initialized with ImageNet-pretrained weights, and all images are processed at 224 × 224 resolution. AdamW is used with an initial learning rate of 0.0006 and weight decay of 0.1; the learning rate is linearly warmed up for five epochs and then decayed with a cosine schedule. The physical mini-batch size is 32, gradients are accumulated over four iterations to obtain an effective batch size of 128, and automatic mixed precision is enabled. Random seed 42 is fixed, every configuration is trained for 50 epochs, and early stopping is disabled. The common optimization and training settings are summarized in Table 5.
Table 5. Training parameter settings.
During training, random resized cropping and color jitter are applied before normalization. The crop perturbs image scale and framing, while color jitter varies brightness, contrast, and saturation to simulate part of the appearance change caused by low-light or nighttime scenes and strong sunlight or glare. Together, they expose the model to moderate viewpoint, camera-framing, illumination, and color variation encountered in vehicle cabins. Horizontal flipping is coupled with LCF so that c1↔c3 and c2↔c4 are remapped whenever an image is flipped, thereby simulating mirrored left-right action layouts without corrupting labels. Validation and test images use deterministic resizing and normalization. An optimizer update is performed after every four physical mini-batches, after which EWS updates the shadow parameters with decay μ = 0.995. At the end of each epoch, the current parameters are evaluated for configurations without EWS, whereas the smoothed parameters are evaluated for configurations with EWS. The checkpoint with the highest test Accuracy is retained, and its Accuracy, Macro-Precision, Macro-Recall, Macro-F1, confusion matrix, and Grad-CAM results are reported. Backbone comparisons and all eight factorial configurations use the same driver split, preprocessing, seed, optimizer, schedule, epoch budget, and checkpoint-selection rule.

4.5. Experimental Results and Discussion

4.5.1. Baseline Model Comparison

Table 6 summarizes the results of the five backbone networks. EfficientNet-B0 provides the strongest recorded baseline on both datasets and is therefore selected as the backbone for controlled ablations. According to the table, adding the complete DEWS scheme improves each backbone to different degrees. ResNet18, for example, improves by 7.08 percentage points on AUC2 and 9.37 percentage points on SFD3. Figure 5 shows the magnitude of the changes across backbones, indicating that the benefit of the method varies with backbone structure and data distribution.
Table 6. Performance comparison of baseline models on the two datasets (%).Best results are highlighted in bold.
Figure 5. Cross-backbone performance comparison of the complete DEWS scheme: (a) AUC2; (b) SFD3.
Table 7 further compares the network efficiency of the five baseline backbones and their DEWS variants. After DEWS is added, the parameter counts and FLOPs of each model increase only slightly, while CPU and GPU FPS remain at a similar scale. This indicates that the proposed method does not introduce an independent extra inference branch. The increase in training-stage TTPE(s) mainly comes from label-consistent augmentation, directional feature learning, and weight smoothing.
Table 7. Network efficiency comparison of baseline models and their DEWS variants.

4.5.2. Ablation Experiments

Table 8 reports the Accuracy, Macro-Precision, Macro-Recall, and Macro-F1 for all eight configurations of the 23 factorial design under the same EfficientNet-B0 backbone, driver-disjoint split, seed 42, and 50-epoch protocol. LCF, the DE Block, and EWS used alone increase the Accuracy by 3.75, 3.69, and 8.05 percentage points on SFD3 and by 1.62, 5.18, and 4.01 points on AUC2. DE Block + EWS gives the highest SFD3 Accuracy (89.36%), only 0.36 points above the complete combination (89.00%), whereas the complete combination reaches the highest AUC2 Accuracy (82.39%). Considering both datasets, the full LCF + DE Block + EWS configuration provides the most balanced overall result. When EWS is added to LCF + DE Block on AUC2, Macro-Precision decreases from 81.34% to 80.90% (−0.44 percentage points), while Macro-Recall rises from 74.61% to 80.23% (+5.62 points), Macro-F1 from 75.14% to 80.06% (+4.92 points), and Accuracy from 75.23% to 82.39% (+7.16 points). Macro-Precision averages TP/(TP + FP) across classes, whereas Macro-Recall averages TP/(TP + FN); therefore, EWS recovers more true samples from several classes while introducing a smaller number of additional false positives in ambiguous classes. Because the Recall, F1, and Accuracy gains substantially exceed the precision decrease, the result indicates a favorable Precision–Recall trade-off rather than a general degradation. Figure 6 summarizes the Accuracy and Macro-F1 for all eight configurations, and Figure 7 presents their validation trajectories.
Table 8. Full-factorial ablation of LCF, the DE Block, and EWS (%). ‘✓’ indicates that the component is included, whereas ‘—’ indicates that it is not included.
Figure 6. Accuracy and Macro-F1 for the full-factorial ablation under the controlled 50-epoch protocol: (a) AUC2; (b) SFD3.
Figure 7. Validation Macro-F1 trajectories of all eight factorial configurations: (a) AUC2; (b) SFD3.

4.5.3. Comparison with Representative Methods

Table 9 provides a protocol-matched accuracy-and-complexity comparison rather than a reimplementation or common-hardware speed study. The D-HCNN, DD-RCNN, CAT-CapsNet, and MobileNetV2-CA values are taken from Gao and Liu [3] under the same dataset partition and evaluation definitions used in this study; only the DEWS-EfficientNet row is obtained here.
Table 9. Protocol-matched accuracy and model-complexity comparison with representative driver distraction models. Comparison-model values are taken from the previous publication [3]; the DEWS-EfficientNet row is from this study.
DEWS-EfficientNet records the highest Accuracy in Table 9, reaching 89.00% on State Farm and 82.39% on AUC2. These values exceed MobileNetV2-CA by 0.33 and 1.29 points, CAT-CapsNet by 0.79 and 2.30 points, and D-HCNN by 11.15 and 10.65 points, respectively. The proposed model uses 421.36 M FLOPs and 4.10 M parameters. Its computational demand is much lower than that of D-HCNN and DD-RCNN while remaining within the same order of magnitude as CAT-CapsNet and MobileNetV2-CA. These complexity values describe the model scale.

4.5.4. Repeated Driver-Level Validation

To evaluate the sensitivity to driver assignment and optimization randomness, we retained the original driver-disjoint partition and generated two alternative partitions by deterministic driver-level shuffling with partition seeds 20,261 and 20,262 while preserving the dataset-specific training, validation, and test split sizes. All images and acquisition sequences from a driver remained in the same subset. For each partition, DEWS-EfficientNet was trained for 50 epochs with random seeds 42, 2026, and 3407 under otherwise identical settings. Test-set Accuracy and Macro-F1 were recorded. Table 10 reports every partition-by-seed result and the within-partition mean ± SD. Using the three partition means as analysis units, AUC2 obtains 81.28 ± 4.44% Accuracy (95% CI 70.25–92.31%) and 79.40 ± 4.66% Macro-F1 (95% CI 67.82–90.97%). SFD3 obtains 88.88 ± 1.19% Accuracy (95% CI 85.92–91.84%) and 87.87 ± 1.68% Macro-F1 (95% CI 83.70–92.03%).
Table 10. Repeated driver-level test of DEWS-EfficientNet across three driver partitions and three random seeds under the controlled 50-epoch protocol (%). Means ± SDs are computed over the three seeds within each partition.

4.5.5. Confusion-Matrix Analysis

Figure 8 and Figure 9 show the row-normalized confusion matrices of DEWS-EfficientNet on AUC2 and SFD3, respectively. On AUC2, the main errors are concentrated in c2 -> c8 (0.32), c3 -> c0 (0.27), c6 -> c8 (0.30), and c7 -> c8 (0.19). These classes share local patterns such as hands close to the face or torso, arm extension, and partial occlusion. On SFD3, c1, c3, c4, c6, and c7 are generally recognized with higher diagonal responses, whereas c8 and c9 remain more difficult because hair-or-makeup and passenger-talking behaviors contain large pose changes and can occupy similar head-and-hand regions.
Figure 8. Normalized confusion matrix of DEWS-EfficientNet on AUC2.
Figure 9. Normalized confusion matrix of DEWS-EfficientNet on SFD3.
The two datasets exhibit different error structures. In AUC2, the confusions among c2, c3, c4, c6, and c8 are more dispersed, indicating that the camera viewpoint, illumination, and driver-pose variation have a stronger influence on local hand cues. In SFD3, the errors are more concentrated around c9, reflecting the large intra-class variation of talking-to-passenger behavior. The DE Block strengthens actions with clear directional patterns, but it remains limited when the motion amplitude is small, the hands are occluded, or the head pose alone is insufficient for discrimination. These observations are consistent with the ablation results and indicate that DEWS mainly improves spatial directional representation and training stability rather than solving all fine-grained behavior ambiguities.

4.5.6. Grad-CAM Visualization Analysis

To assess both predictive confidence and spatial attention on difficult AUC2 samples, Figure 10 reports the ground-truth class probability p(gt) together with Gradient-weighted Class Activation Mapping (Grad-CAM) [48]. EfficientNet-B0 assigns p(gt) = 0.28–0.33 and misclassifies the selected samples, whereas DEWS-EfficientNet increases p(gt) to 0.92–0.99 and predicts every displayed ground-truth class correctly. Its heatmaps also concentrate more clearly on the hands, phone, head, and steering-wheel interaction regions while relying less on windows and unrelated background. Some responses still extend to shared torso and steering-wheel areas, consistent with the remaining confusion among phone use, texting, drinking, and passenger interaction. The combined confidence and spatial evidence therefore indicates stronger responses to behavior-relevant cues for these selected samples.
Figure 10. Grad-CAM visualization of EfficientNet-B0 and DEWS-EfficientNet on confusing AUC2 samples. The heatmaps are generated for the ground-truth behavior class; warmer colors indicate stronger class-discriminative responses.

4.5.7. Overall Discussion

The main evidence comes from the complete factorial ablation on EfficientNet-B0 and the cross-backbone comparison. Each isolated component improves the EfficientNet-B0 baseline. DE Block + EWS reaches the highest SFD3 Accuracy (89.36%), but the complete configuration remains close at 89.00% and achieves the highest AUC2 Accuracy (82.39%); the full method is therefore selected as the most balanced configuration across the two datasets. Moreover, consistent gains across AlexNet, SqueezeNet1.1, ShuffleNetV2, ResNet18, and EfficientNet-B0 indicate that the input-level label correction, high-level directional refinement, and parameter smoothing are compatible with different convolutional backbones rather than being tied to one architecture.
Real-world deployment may include low-light or nighttime scenes, strong sunlight or glare, facial occlusion by sunglasses or scarves, camera-viewpoint changes, and different cabin layouts. The augmentations used in all experiments partially simulate these variations. Color jitter changes brightness, contrast, and saturation to approximate low- and strong-light appearance changes. Random resized cropping varies scale and framing, while LCF-coupled flipping covers mirrored left-right actions. However, augmentation is not equivalent to controlled condition-specific testing, AUC2 and SFD3 provide no condition labels for stratified estimates, and the current protocol does not directly simulate sunglasses or scarf occlusion. Future work will use Random Erasing or Cutout, illumination normalization, style randomization, temporal evidence, and condition-annotated in-vehicle evaluation to examine these conditions explicitly.

5. Conclusions

This study presents DEWS-EfficientNet, a single-branch driver-behavior classifier combining LCF, the DE Block, and EWS. It reaches 82.39% Accuracy on AUC2 and 89.00% on SFD3, exceeding the corresponding EfficientNet-B0 baselines by 11.83 and 10.04 percentage points. LCF maintains semantic consistency under horizontal flipping, the DE Block strengthens local directional action cues, and EWS stabilizes model parameters without adding an inference branch. The complete configuration also improves five convolutional backbones, demonstrating practical compatibility with standard driver-monitoring classifiers at moderate computational cost. Repeated testing across three driver-disjoint partitions and three random seeds additionally quantifies sensitivity to driver assignment and initialization.
The present study uses single-frame images from two public datasets and does not yet measure temporal stability, embedded-device latency, memory consumption, or energy use. Future work will introduce stronger occlusion- and illumination-aware augmentation, short temporal or multimodal cues, domain-adaptive normalization, and embedded-device profiling. These extensions will support more robust recognition under changing cabin conditions while preserving the compact single-branch inference path.

Author Contributions

Conceptualization, Y.Z.; Methodology, C.C., Z.H., and X.Z.; Software, Y.Z.; Validation, Y.Z. and Z.H.; Formal analysis, Y.Z.; Investigation, Y.Z.; Resources, C.C. and X.Z.; Data Curation, Y.Z.; Writing—Original Draft Preparation, Y.Z.; Writing—Review and Editing, C.C., Z.H., and X.Z.; Visualization, Y.Z.; Supervision, C.C.; Project Administration, C.C.; Funding Acquisition, C.C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The datasets used in this study are publicly available. The State Farm Distracted Driver Detection dataset can be accessed at https://www.kaggle.com/c/state-farm-distracted-driver-detection (accessed on 30 June 2026), and the AUC Distracted Driver V2 dataset can be accessed at https://heshameraqi.github.io/distraction_detection (accessed on 30 June 2026).

Acknowledgments

We would like to thank the College of Engineering Science and Technology, Shanghai Ocean University, for providing research support and facilities that made this study possible.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Susanto, N.; Ulkhaq, M.M.; Tindaon, U.A. The Effect of Mobile Phone Use, Traffic Environment, and the Interaction on Driving Performance of Adult Drivers: Empirical Findings from 22 Factorial Design Simulation. Int. J. Transp. Dev. Integr. 2024, 8, 435–445. [Google Scholar] [CrossRef] [Scilit]
  2. Piancastelli, L. Human-Factors and Power-System Implications of Consumer Electronics-Oriented Vehicle Design and Full-Electric Fleet Deployment. Power Eng. Eng. Thermophys. 2025, 4, 168–177. [Google Scholar] [CrossRef] [Scilit]
  3. Gao, H.; Liu, Y. Improving Real-Time Driver Distraction Detection via Constrained Attention Mechanism. Eng. Appl. Artif. Intell. 2024, 128, 107408. [Google Scholar] [CrossRef] [Scilit]
  4. Lv, M.; Liu, Y.; Zha, Z.; Zheng, X.; Wang, H.; Wen, Y.; Guo, Z. Si-CA MobileNet: A Lightweight and Efficient Convolutional Neural Network for Distracted Driver Detection. Neurocomputing 2025, 654, 131281. [Google Scholar] [CrossRef] [Scilit]
  5. Khan, T.; Choi, G.; Lee, S. EFFNet-CA: An Efficient Driver Distraction Detection Based on Multiscale Features Extractions and Channel Attention Mechanism. Sensors 2023, 23, 3835. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Jegham, I.; Alouani, I.; Ben Khalifa, A.; Mahjoub, M.A. Deep Learning-Based Hard Spatial Attention for Driver in-Vehicle Action Monitoring. Expert Syst. Appl. 2023, 219, 119629. [Google Scholar] [CrossRef] [Scilit]
  7. Du, Y.; Liu, X.; Yi, Y.; Wei, K. Optimizing Road Safety: Advancements in Lightweight YOLOv8 Models and GhostC2f Design for Real-Time Distracted Driving Detection. Sensors 2023, 23, 8844. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Shen, Q.; Zhang, L.; Zhang, Y.; Zhang, Y.; Liu, S.; Li, Y. Ddr-Yolo: An Efficient and Accurate Object Detection Algorithm for Distracted Driving Behaviors. Expert Syst. Appl. 2025, 308, 131170. [Google Scholar] [CrossRef] [Scilit]
  9. Wang, J.; Wu, Z. Driver Distraction Detection via Multi-scale Domain Adaptation Network. IET Intell. Transp. Syst. 2023, 17, 1742–1751. [Google Scholar] [CrossRef] [Scilit]
  10. Yang, L.; Wei, H.; Hu, Z.; Lv, C. A Domain Generalization Method for Deploying Driver Distraction Detection Models to Practical Application Scenarios. Eng. Appl. Artif. Intell. 2025, 152, 110844. [Google Scholar] [CrossRef] [Scilit]
  11. Mohammed, A.A.Q.; Geng, X.; Wang, J.; Ali, Z. Driver Distraction Detection Using Semi-Supervised Lightweight Vision Transformer. Eng. Appl. Artif. Intell. 2024, 129, 107618. [Google Scholar] [CrossRef] [Scilit]
  12. Ma, Y.; Wang, Z. ViT-DD: Multi-Task Vision Transformer for Semi-Supervised Driver Distraction Detection. arXiv 2024, arXiv:2209.09178. [Google Scholar] [CrossRef] [Scilit]
  13. Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J.; Wojna, Z. Rethinking the Inception Architecture for Computer Vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; IEEE: New York, NY, USA, 2016; pp. 2818–2826. [Google Scholar] [CrossRef] [Scilit]
  14. Romera, E.; Alvarez, J.M.; Bergasa, L.M.; Arroyo, R. ERFNet: Efficient Residual Factorized ConvNet for Real-Time Semantic Segmentation. IEEE Trans. Intell. Transp. Syst. 2018, 19, 263–272. [Google Scholar] [CrossRef] [Scilit]
  15. Ding, X.; Guo, Y.; Ding, G.; Han, J. ACNet: Strengthening the Kernel Skeletons for Powerful CNN via Asymmetric Convolution Blocks. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea, 27 October–2 November 2019; IEEE: New York, NY, USA, 2019; pp. 1911–1920. [Google Scholar] [CrossRef] [Scilit]
  16. Tan, M.; Le, Q.V. EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. arXiv 2020, arXiv:1905.11946. [Google Scholar] [CrossRef] [Scilit]
  17. Joel John, M.; Dinakaran, K.; Bharathiraja, N. Advancing Transport Safety with Faster Pre-Convoluted Neural Networks and Lightweight Multi-Scale Fusion for Driver Distraction Detection. Int. J. Heavy Veh. Syst. 2024, 1, 10064928. [Google Scholar] [CrossRef] [Scilit]
  18. Mohsin, A.R.; Khalid, M.; Ali, J.; Roh, B. Enhancing Driver Safety with ResNet-RG—A Deep Learning-Based Distraction Detection Approach. IEEE Sens. J. 2026, 26, 4664–4683. [Google Scholar] [CrossRef] [Scilit]
  19. Hassam, D.D.; Mohamme, A.T.; Sadiq, A.S.; Salman, B.Y. Driver Distracted Detection Using a New Hybrid Deep Convolutional Neural Network Based on Autoencoder. Eng. Res. Express 2025, 7, 045219. [Google Scholar] [CrossRef] [Scilit]
  20. Luo, G.; Guo, B.; Jin, L.; Zhang, Y.; Liu, X.; Liu, J.; Shi, W.; Yao, H. Enhancing Lightweight Distracted Driving Behavior Detection Capabilities Using KRCA Knowledge Distillation. Meas. Sci. Technol. 2026, 37, 036108. [Google Scholar] [CrossRef] [Scilit]
  21. Eraqi, H.M.; Abouelnaga, Y.; Saad, M.H.; Moustafa, M.N. Driver Distraction Identification with an Ensemble of Convolutional Neural Networks. J. Adv. Transp. 2019, 2019, 4125865. [Google Scholar] [CrossRef] [Scilit]
  22. Baheti, B.; Talbar, S.; Gajre, S. Towards Computationally Efficient and Realtime Distracted Driver Detection with MobileVGG Network. IEEE Trans. Intell. Veh. 2020, 5, 565–574. [Google Scholar] [CrossRef] [Scilit]
  23. Qin, B.; Qian, J.; Xin, Y.; Liu, B.; Dong, Y. Distracted Driver Detection Based on a CNN with Decreasing Filter Size. IEEE Trans. Intell. Transp. Syst. 2022, 23, 6922–6933. [Google Scholar] [CrossRef] [Scilit]
  24. Liu, D.; Yamasaki, T.; Wang, Y.; Mase, K.; Kato, J. Toward Extremely Lightweight Distracted Driver Recognition with Distillation-Based Neural Architecture Search and Knowledge Transfer. IEEE Trans. Intell. Transp. Syst. 2023, 24, 764–777. [Google Scholar] [CrossRef] [Scilit]
  25. Li, Z.; Zhao, X.; Wu, F.; Chen, D.; Wang, C. A Lightweight and Efficient Distracted Driver Detection Model Fusing Convolutional Neural Network and Vision Transformer. IEEE Trans. Intell. Transp. Syst. 2024, 25, 19962–19978. [Google Scholar] [CrossRef] [Scilit]
  26. Gu, S.; Wen, B.; Chen, S.; Li, Y.; Qi, G.; Shuai, L.; Zhu, Z. Driver Distraction Detection Based on Adaptive Tiny Targets and Lightweight Networks. Signal Process. Image Commun. 2025, 138, 117342. [Google Scholar] [CrossRef] [Scilit]
  27. Rampavan, M.; Ijjina, E.P. An Improved Genetic Algorithm Based Deep Learning Model with You Only Look Once Framework for Driver Distraction Detection. Eng. Appl. Artif. Intell. 2025, 160, 111932. [Google Scholar] [CrossRef] [Scilit]
  28. Debsi, A.; Ling, G.; Al-Mahbashi, M.; Al-Soswa, M.; Abdullah, A. Driver Distraction and Fatigue Detection in Images Using ME-YOLOv8 Algorithm. IET Intell. Transp. Syst. 2024, 18, 1910–1930. [Google Scholar] [CrossRef] [Scilit]
  29. Xin, S.; Zhang, S.; Xu, W.; Yang, Y.; Zhang, X. Deep Learning–Based Eye Tracking System to Detect Distracted Driving. Meas. Sci. Technol. 2024, 35, 096303. [Google Scholar] [CrossRef] [Scilit]
  30. Lu, M.; Hu, Y.; Lu, X. Driver Action Recognition Using Deformable and Dilated Faster R-CNN with Optimized Region Proposals. Appl. Intell. 2020, 50, 1100–1111. [Google Scholar] [CrossRef] [Scilit]
  31. Mittal, H.; Verma, B. CAT-CapsNet: A Convolutional and Attention Based Capsule Network to Detect the Driver’s Distraction. IEEE Trans. Intell. Transp. Syst. 2023, 24, 9561–9570. [Google Scholar] [CrossRef] [Scilit]
  32. Gong, Y.; Shen, X. An Algorithm for Distracted Driving Recognition Based on Pose Features and an Improved KNN. Electronics 2024, 13, 1622. [Google Scholar] [CrossRef] [Scilit]
  33. Tango, F.; Botta, M. Real-Time Detection System of Driver Distraction Using Machine Learning. IEEE Trans. Intell. Transp. Syst. 2013, 14, 894–905. [Google Scholar] [CrossRef] [Scilit]
  34. Liu, T.; Yang, Y.; Huang, G.-B.; Yeo, Y.K.; Lin, Z. Driver Distraction Detection Using Semi-Supervised Machine Learning. IEEE Trans. Intell. Transp. Syst. 2016, 17, 1108–1120. [Google Scholar] [CrossRef] [Scilit]
  35. Aksjonov, A.; Nedoma, P.; Vodovozov, V.; Petlenkov, E.; Herrmann, M. Detection and Evaluation of Driver Distraction Using Machine Learning and Fuzzy Logic. IEEE Trans. Intell. Transp. Syst. 2019, 20, 2048–2059. [Google Scholar] [CrossRef] [Scilit]
  36. Liu, H.; Fu, C.; Zhou, Y.; Shi, P.; Jiang, C. A Two-Level Fusion CNN Model for Classifying Metro Drivers’ Distractions with Functional near-Infra-Red Spectroscopy and Electrocardiography Signals. Ergonomics 2025, 1–25. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  37. Noh, B.; Park, M.; Han, Y.; Kim, J. A Multi-Modal Approach for Detecting Drivers’ Distraction Using Bio-Signal and Vision Sensor Fusion in Driver Monitoring Systems. Eng. Appl. Artif. Intell. 2025, 161, 112265. [Google Scholar] [CrossRef] [Scilit]
  38. Mou, L.; Chang, J.; Zhou, C.; Zhao, Y.; Ma, N.; Yin, B.; Jain, R.; Gao, W. Multimodal Driver Distraction Detection Using Dual-Channel Network of CNN and Transformer. Expert Syst. Appl. 2023, 234, 121066. [Google Scholar] [CrossRef] [Scilit]
  39. Elhenawy, M.; Masoud, M.; Haworth, N.; Young, K.; Rakotonirainy, A.; Grzebieta, R.; Williamson, A. Detection of Driver Distraction in the Australian Naturalistic Driving Study Videos Using Pre-Trained Models and Transfer Learning. Transp. Res. Part F Traffic Psychol. Behav. 2023, 97, 31–43. [Google Scholar] [CrossRef] [Scilit]
  40. Hasan, M.Z.; Chen, J.; Wang, J.; Rahman, M.S.; Joshi, A.; Velipasalar, S.; Hegde, C.; Sharma, A.; Sarkar, S. Vision-Language Models Can Identify Distracted Driver Behavior From Naturalistic Videos. IEEE Trans. Intell. Transp. Syst. 2024, 25, 11602–11616. [Google Scholar] [CrossRef] [Scilit]
  41. Zhang, Z.; Yang, L.; Lv, C. Highly Discriminative Driver Distraction Detection Method Based on Swin Transformer. Vehicles 2024, 6, 140–156. [Google Scholar] [CrossRef] [Scilit]
  42. Tarvainen, A.; Valpola, H. Mean Teachers Are Better Role Models: Weight-Averaged Consistency Targets Improve Semi-Supervised Deep Learning Results. arXiv 2018, arXiv:1703.01780. [Google Scholar] [CrossRef] [Scilit]
  43. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Müller, A.; Nothman, J.; Louppe, G.; et al. Scikit-Learn: Machine Learning in Python. arXiv 2018, arXiv:1201.0490. [Google Scholar] [CrossRef] [Scilit]
  44. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet Classification with Deep Convolutional Neural Networks. Commun. ACM 2017, 60, 84–90. [Google Scholar] [CrossRef] [Scilit]
  45. Iandola, F.N.; Han, S.; Moskewicz, M.W.; Ashraf, K.; Dally, W.J.; Keutzer, K. SqueezeNet: AlexNet-Level Accuracy with 50× Fewer Parameters and <0.5MB Model Size. arXiv 2016, arXiv:1602.07360. [Google Scholar] [CrossRef] [Scilit]
  46. Ma, N.; Zhang, X.; Zheng, H.-T.; Sun, J. ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design. arXiv 2018, arXiv:1807.11164. [Google Scholar] [CrossRef] [Scilit]
  47. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 27–30 June 2016; IEEE: New York, NY, USA, 2016; pp. 770–778. [Google Scholar] [CrossRef] [Scilit]
  48. Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual Explanations from Deep Networks via Gradient-Based Localization. Int. J. Comput. Vis. 2020, 128, 336–359. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.