Low-light driver drowsiness detection for real-time safety assistance using dual attention mechanisms in deep learning model.
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Low-light driver drowsiness detection for real-time safety assistance using dual attention mechanisms in deep learning model - PMC Skip to main content An official website of the United States government Here's how you know Here's how you know Search Log in Primary site navigation Search Log in Search PMC Full-Text Archive Search in PMC Journal List User Guide As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: PMC Disclaimer | PMC Copyright Notice Sci Rep . 2026 Apr 20;16:18234. doi: 10.1038/s41598-026-44442-3 Low-light driver drowsiness detection for real-time safety assistance using dual attention mechanisms in deep learning model Shatakshi Saxena 1 , Angel 1 , Manju Khurana 1 , Shailendra Tiwari 1 , Harish Kumar Shakya 2, ✉ Author information Article notes Copyright and License information 1 Department of Computer Science and Engineering, Thapar Institute of Engineering and Technology, Patiala, Punjab 147004 India 2 Department of Artificial Intelligence and Machine Learning, School of Computer Science & Engineering, Manipal University Jaipur, Jaipur, India ✉ Corresponding author. Received 2025 Sep 16; Accepted 2026 Mar 11; Collection date 2026. © The Author(s) 2026 Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/ . PMC Copyright notice PMCID: PMC13260419 PMID: 42010315 Abstract This research presents a robust real-time driver drowsiness detection system employing deep learning, attention mechanisms, and explainable AI (XAI) techniques to address this critical safety concern. The system integrates a fine-tuned InceptionV3 baseline with dual attention mechanisms, i.e., spatial and channel attention mechanisms, alongside a Low-Light Fine-Tuned LLFormer, to enhance detection performance in complex scenarios such as low-light conditions and occluded facial features. Additionally, the ResNet-50 model is utilized for feature extraction, while XAI techniques like Grad-CAM, LRP, etc., are incorporated to provide interpretability and transparency to model predictions. Multiple drowsiness indicators, including head tilting, blinking, and yawning, are analyzed using temporal factors, supported by facial landmark key point detection and a multi-browser distraction detection module for comprehensive monitoring. Experimental results reveal significant improvements, achieving up to 98.4% accuracy even under challenging conditions such as drivers wearing glasses, low light, and varied levels of facial occlusion. The model is optimized for real-time deployment on mobile and embedded platforms with minimal computational overhead. By incorporating these innovations, the proposed solution demonstrates the potential to significantly reduce drowsy driving-related risks, providing a practical, scalable, and interpretable tool for advanced driver assistance systems aimed at enhancing road safety. Subject terms: Engineering, Mathematics and computing Introduction Driver drowsiness is a critical and often underestimated factor in road safety, contributing significantly to global fatalities. According to the World Health Organization, approximately 1.25 million deaths and 20–50 million injuries are recorded annually due to road accidents, with fatigue-related incidents accounting for over 10% of these cases 1 . In India, the issue is particularly severe, with an estimated 328,000 annual accidents and 6,400 fatalities directly linked to drowsy driving 2 . The unique challenges posed by Indian road conditions, including erratic traffic patterns, mixed vehicle types, inconsistent infrastructure, and high pedestrian density, exacerbate the risks. This highlights an urgent need for precise, scalable, and real-time solutions tailored to such diverse and demanding environments. Advanced Driver Assistance Systems (ADAS) developed by leading automakers, such as Tesla’s Autopilot and Volvo’s Driver Alert Control, incorporate fatigue detection technologies utilizing eye-tracking cameras, lane deviation monitoring, and adaptive vehicle controls 3 . While these systems demonstrate efficacy in structured environments with superior infrastructure, their applicability diminishes in regions like India due to various limitations. Factors such as low-light conditions, facial occlusions caused by masks, glasses, or cultural attire, and the high computational costs of these solutions impede widespread adoption. Moreover, the lack of temporal analysis and inadequate interpretability of existing systems further undermines their effectiveness in identifying complex patterns of fatigue over time. The current knowledge gap in detecting drowsiness under real-world, heterogeneous conditions necessitates a novel approach that goes beyond conventional ADAS technologies. Many existing solutions fail to adapt to India’s demographic diversity and infrastructural constraints, where frequent stops, abrupt traffic behaviors, and limited road lighting demand a system capable of contextual adaptability. Additionally, the lack of explainable AI (XAI) in most systems hampers user trust, leaving critical stakeholders hesitant to rely on these technologies for life-critical decisions. Addressing these gaps requires a robust, interpretable, and resource-efficient solution that can seamlessly integrate into diverse vehicular settings. The key contributions of the proposed work are: This research tackles the critical challenge of driver drowsiness detection in real-world scenarios, emphasizing Indian road conditions marked by erratic traffic, low-light settings, and facial occlusions. It presents a real-time detection system leveraging fine-tuned InceptionV3 with dual attention mechanisms (spatial and channel) and a Low-Light Fine-Tuned LLFormer, ensuring robust performance under challenging conditions. By integrating explainable AI techniques, the study enhances interpretability and trust in model predictions, addressing the critical need for accountability in safety-critical applications. The system adopts a holistic approach by analyzing head tilting, blinking, yawning, and distractions through temporal factors and facial landmark detection, ensuring comprehensive drowsiness detection. Designed for computational efficiency, the model is optimized for mobile and embedded platforms, with evaluations on benchmark datasets and ablation studies confirming its scalability and practical utility for road safety. Our system achieves state-of-the-art performance, with 98.4% accuracy under challenging conditions, validated across diverse benchmark datasets, including LOL, NTHU-DDD2, and UTA-RLDD. It is optimized for real-time deployment on resource-constrained platforms, ensuring scalability and accessibility. Once the drowsiness is detected, our proposed solution can be used for proactive accidental care by implementing a tiered alert system tailored to the severity of drowsiness. For low drowsiness, the application can initiate a mild alarm to enhance driver awareness. In cases of medium drowsiness, it can trigger a high-volume alert, urging greater caution. When extreme drowsiness is detected, the app can activate itself for immediate intervention, ensuring that critical measures are taken to mitigate heightened risks. The application can also deliver a “last-call” notification during extreme drowsiness, allowing the driver 5 to 10 seconds to respond and potentially prevent accidents. If no response is detected and the alarm persists, the application can automatically notify local emergency services, including police, hospitals, and fire brigades, ensuring swift post-crash care and recovery. By integrating these features, the application can provide comprehensive, real-time safety assistance, ensuring proactive and reliable support for drivers. This approach, embodied in our model, can redefine road safety through advanced deep learning techniques and attention mechanisms. The remainder of the paper is structured as follows: Section II reviews related works in the field of driver drowsiness detection, emphasizing existing methodologies and their limitations. Section III outlines the methodology adopted in this study, including data pre-processing, feature extraction, and the development of a low-light vision algorithm. This section also introduces our proposed solution, which integrates the InceptionV3 architecture with an attention mechanism, and discusses its explainability. In Section IV, the experimental setup is detailed, covering the dataset description, installation environment, baseline techniques, fine-tuning setup, and evaluation metrics. Section V presents the results and discussions, with a focus on an ablation study to highlight the impact of various components of our approach. Finally, Section VI concludes the paper, summarizing the key findings and proposing potential directions for future research. Related works Driver drowsiness detection and low-light vision enhancement have emerged as critical areas of research in transportation safety, addressing challenges in ensuring road safety under varying conditions. This section provides a comprehensive review of significant contributions in these domains, focusing on deep learning-based methods, multimodal approaches, and real-time detection systems, alongside advancements in low-light vision algorithms that complement driver monitoring systems. Low-light vision algorithms Research on driver drowsiness and low-light image enhancement has seen significant advancements, addressing challenges in road safety and vision systems under poor illumination as in Table 1 . Feng et al. developed a night-time driver fatigue monitoring system using infrared imaging and a Gabor filter-based eye-detection algorithm with template matching, achieving robust real-time performance 4 . Their approach, tested on benchmark datasets, effectively analyzed eyelid curves and blink rates, laying the groundwork for fatigue evaluation. Similarly, Yanfeng et al. investigated low-light image enhancement techniques, identifying CLAHE as the optimal method. Integrating CLAHE with deep learning models like VGG16 and ResNet-50 improved classification accuracy to 92.1% 5 . Yuan et al. further showcased CLAHE’s efficacy in UAV image enhancement, boosting object detection accuracy from 58% to 82% for insulators, highlighting its industrial relevance 6 . Advanced methodologies in unsupervised learning have also revolutionized low-light enhancement. Jiang et al. proposed EnlightenGAN, an unsupervised GAN framework featuring global-local discriminators, perceptual loss fusion, and attention mechanisms, excelling in real-world low-light scenarios without requiring paired datasets 7 . Table 1. Low-light vision algorithms for driver monitoring. Author (Year) Proposed method Dataset Experimental results Benefits and limitations Feng et al. (2020) 4 Infrared imaging with Gabor-based eye detection Benchmark fatigue datasets Robust eyelid curve and blink-rate analysis Real-time and robust; limited to infrared imaging Zhang et al. (2021) 5 HE, AHE, and CLAHE with VGG16 / ResNet-50 Low-light image datasets 92.1% classification accuracy after enhancement Improves recognition in poor lighting; strong dependence on CLAHE Yuan et al. (2021) 6 CLAHE-based enhancement for UAV imagery Low-light UAV datasets Detection accuracy improved from 58% to 82% Effective contrast enhancement; limited application scope Jiang et al. (2022) 7 EnlightenGAN (unsupervised GAN) Real-world low-light images Superior visual quality over paired methods No ground truth required; high computational cost Guo et al. (2023) 8 Zero-reference deep curve estimation network Multiple real-world low-light datasets Consistent enhancement across lighting conditions No paired supervision; curve estimation sensitive to noise Wang et al. (2025) 9 ILR-Net using iterative learning with Retinex theory Public low-light benchmarks Improved illumination correction and structure preservation Progressive enhancement; increased training complexity Rahman et al. (2025) 10 Lightweight deep learning enhancement model Standard low-light datasets Competitive enhancement with reduced computation Efficient and deployable; slight texture loss Li et al. (2025) 11 Kolmogorov–Arnold transformer-based enhancement Low-light image benchmarks Enhanced contrast and detail recovery Captures long-range dependencies; higher memory usage Chen et al. (2025) 12 Structure-guided diffusion transformer framework Extreme low-light datasets High-quality enhancement in severely dark scenes Strong generative capability; computationally expensive Kumar et al. (2025) 13 FusionNet with multi-model linear fusion Multiple low-light datasets Balanced noise reduction and detail preservation Fusion overhead increases latency Zhou et al. (2025) 14 DLEN dual-branch transformer architecture Public low-light benchmarks Superior performance under challenging illumination Separates global and local features; higher model complexity Open in a new tab Recent advances in low-light image enhancement increasingly adopt learning-based, reference-free, and transformer-driven approaches. Zero-reference curve estimation enables robust enhancement without paired data 8 , while Retinex-inspired iterative learning frameworks such as ILR-Net improve visual fidelity by separating illumination and reflectance components 9 . Lightweight convolutional designs further demonstrate competitive enhancement quality with reduced computational overhead, supporting practical deployment 10 . Transformer- and diffusion-based models capture long-range dependencies and complex illumination distributions, achieving improved contrast and detail preservation under extreme low-light conditions 11 , 12 . Fusion and dual-branch transformer architectures balance global illumination and local texture modeling, yielding superior performance on challenging benchmarks 13 , 14 . Collectively, these trends motivate the adoption of LLFormer-based enhancement for robust low-light driver monitoring. Drowsiness detection algorithms Deep learning-based detection methods As summarized in Table 2 , driver drowsiness has been extensively studied using behavioral and physiological indicators. Facial cues such as blinking, head movements, and yawning are widely recognized, with particular emphasis on blinking frequency 15 and PERCLOS, which measures the proportion of eyelid closure over time 16 . These approaches aim to reliably model the impact of drowsiness on driving performance. Prior studies have explored various CNN–RNN architectures, hybrid deep feature selection methods, multi-sensor fusion strategies, ANN-based models, and EEG-driven approaches for drowsiness detection 17 – 20 . Table 2. Deep learning-based drowsiness detection methods. Author Year Proposed method Dataset Experimental results Benefits and limitations Bekhouche et al. 18 2021 Hybrid deep feature selection from video sequences Video-based driver datasets Improved feature discrimination for drowsiness detection + Enhanced feature representation – Complex feature integration Schwarz et al. 24 2021 Multi-sensor monitoring with deep data fusion Multi-sensor datasets (video, vehicle signals) Improved detection robustness across conditions + Higher reliability via sensor fusion – Synchronization and latency issues Jacobé de Naurois et al. 19 2018 ANN-based behavioral drowsiness detection Benchmark driving datasets Demonstrated predictive modeling capability + Effective ANN modeling – High computational and data requirements Stancin et al. 20 2019 EEG-based deep learning framework EEG signal datasets High detection accuracy under controlled settings + Strong physiological indicators – Intrusive sensing limits real-world use Pahariya et al. 23 2023 MobileNetV2 with transfer learning Image-based driver datasets Competitive accuracy with reduced computation + Lightweight and edge-friendly – Limited robustness to extreme conditions Madni et al. 21 2024 Transfer learning using eye movement behavior analysis Eye-tracking and facial datasets Improved generalization across drivers + Strong subject-invariant performance – Dependent on precise eye localization Essahraui et al. 22 2024 Real-time facial analysis using deep learning and ML Real-time facial video datasets Robust performance under varying illumination + Real-time applicability – Computational overhead for embedded systems Open in a new tab Transfer learning and lightweight architectures have been increasingly adopted for practical drowsiness detection, including eye-movement–based transfer learning to improve cross-subject generalization 21 , real-time facial analysis robust to illumination and pose variations 22 , and MobileNetV2-based models that significantly reduce computational overhead 23 . Despite enabling efficient deployment, these approaches continue to involve trade-offs among detection accuracy, robustness, and computational efficiency. Similarly, recent survey studies have comprehensively explored advancements in driver drowsiness detection using deep learning techniques. Fonseca and Ferreira 25 provide a systematic review highlighting the evolution and performance of various deep learning-based models, emphasizing their effectiveness across diverse real-world scenarios. In parallel, Fu et al. 26 present a broader analysis of modern applications and methodologies, discussing emerging trends, challenges, and the integration of multimodal approaches in enhancing detection accuracy. Multimodal and feature fusion approaches Temporal modeling remains central to driver drowsiness and fatigue detection, as summarized in Table 3 . LSTM-based and 3D neural network approaches effectively capture temporal dependencies but face real-time deployment challenges due to high computational cost and architectural complexity 27 . Accuracy has been improved through CNN-based emotion analysis, dual-stream spatial–temporal learning, and multimodal fusion using InceptionV3 and LSTM 28 – 30 . Transfer learning and lightweight CNN architectures further enable efficient deployment with limited data 31 , 32 , while recent efforts emphasize computational efficiency, multimodal robustness, and low-light enhancement to support reliable real-time driver monitoring 33 – 35 . Table 3. Multimodal and feature fusion approaches. Author Year Proposed method Dataset Experimental results Benefits and limitations Wang and Liu 42 2021 Transfer learning with fine-tuned models Driver-specific datasets 94.2% accuracy + Reduced training needs – Weak unseen adaptability Quddus et al. 27 2020 CNN + LSTM for temporal sequence modeling Driver behavior datasets Effective temporal modeling + Captures temporal dependencies – High computational cost Zhao et al. 29 2021 Dual-stream spatial–temporal network Standardized datasets 95.8% accuracy + Strong spatio-temporal fusion – Increased complexity Chand and Karthikeyan 28 2022 CNN-based multilevel emotion and behavior fusion Facial/driving metrics datasets 93% accuracy + Emotion-aware fusion – Real-time constraints Gomaa et al. 32 2022 CNN + LSTM hybrid video framework Temporal video datasets Improved accuracy over single modality + Enhanced multimodal fusion – Computationally intensive Duggal 43 2021 Customized InceptionV3 with ImageNet pretraining ImageNet + driver datasets 94.78% training accuracy + Strong feature extraction – Overfitting risk Kim and Park 44 2021 EEG + visual multimodal fusion Physiological + facial datasets 97.3% accuracy + High fusion reliability – Limited physio availability Zhao et al. 30 2023 InceptionV3 + LSTM with HRV and PBV Physio/video datasets 5% accuracy improvement + Robust visual–physio fusion – Processing overhead Dahri et al. 40 2024 OSTD-YOLOv8 for infrared real-time detection Infrared UAV datasets Reliable small-target detection + Efficient spatial attention – Domain-specific Javed et al. 36 2025 Transformer-based gaze and blink attention modeling Real-time video datasets High robustness in temporal consistency + Fine-grained ocular attention – Not drowsiness-specific Kiswanto and Wahyono 35 2025 Low-light enhancement (CLAHE, LIME, SSR) + SVM Eye/mouth datasets Up to 92% F1-score + Robust under low-light – Preprocessing overhead Open in a new tab Attention-based temporal modeling has proven effective for capturing fine-grained ocular behaviors such as blink patterns and gaze dynamics in real-time vision tasks 36 , 37 . Transformer-driven and diffusion-based multimodal frameworks further demonstrate the value of temporal attention and structured feature integration under real-time constraints 38 , 39 , while lightweight attention mechanisms enable efficient spatial–temporal modeling in resource-constrained and low-contrast environments 40 , 41 . These insights motivate lightweight, attention-driven architectures tailored for real-time driver drowsiness detection. Real-time detection systems and mobile and edge computing solutions Innovations in dataset development have addressed challenges in training robust models for drowsiness detection as in Table 4 . Liu et al. introduced a large-scale dataset featuring varied camera angles and lighting conditions, which enabled models to achieve 95.6% accuracy in diverse environments. Rodriguez and Smith tackled the issue of limited real-world data by generating synthetic datasets, maintaining detection accuracy above 93% while enhancing dataset diversity, thus demonstrating the potential of synthetic data to supplement real-world scenarios 45 . These advancements highlight the critical role of diverse and comprehensive datasets in developing reliable systems capable of operating in real-world conditions. Table 4. Real-time detection systems and mobile/edge solutions. Author Year Proposed method Dataset Experimental results Benefits and limitations Liu et al. 42 2021 Developed large-scale dataset with varied camera angles Large-scale dataset 95.6% accuracy + Robust training in varied conditions – Costly dataset creation Rodriguez and Smith 45 2021 Synthetic data generation Synthetic dataset Detection accuracy >93% + Enhanced dataset diversity – May lack real-world nuances Park et al. 46 2022 Optimized DL models for edge devices Edge-oriented dataset 91% accuracy, real-time performance + Feasible on resource-limited devices – Complex scenarios harder Open in a new tab Additionally, progress in mobile and edge computing has significantly expanded the accessibility of drowsiness detection systems. Hassan et al. combined Haar-Adaboost facial recognition with CNNs to create mobile-optimized implementations, enhancing the practicality of such systems for everyday use. Park et al. optimized deep learning models for edge devices, achieving 91% accuracy with real-time performance on mobile processors, underscoring the feasibility of deploying these technologies in resource-constrained environments 46 . Methodology The proposed driver fatigue detection framework is designed to operate robustly under nighttime and low-light driving conditions through a structured multi-stage deep learning pipeline. The system integrates diverse datasets, standardized preprocessing, and an attention-enhanced classification architecture to improve reliability in challenging illumination scenarios as illustrated in Fig. 1 . The overall architecture of the proposed staged driver drowsiness detection framework is shown in Fig. 2 . Input frames undergo preprocessing and low-light enhancement using LLFormer, followed by feature extraction and classification via a fine-tuned InceptionV3 network with spatial–channel attention. The model is evaluated using subject-independent splits and deployed for real-time detection under diverse illumination conditions. Fig. 1. Open in a new tab Block diagram of the proposed framework illustrating low-light image enhancement using LLFormer, deep feature extraction via ResNet-50, and attention-assisted drowsiness classification using InceptionV3. Fig. 2. Open in a new tab Overall architecture of the proposed framework. The proposed framework aggregates data from multiple public datasets, including YAWDD, MRL, OC, DDD, NTHU, EXDARK, and LOL, with targeted subsets (YAWDD-CWE and GLASSES) incorporated to represent occlusions, eyewear, and low-light conditions. A unified preprocessing pipeline standardizes heterogeneous inputs through resizing, normalization, downsampling, and label extraction. As illustrated in Fig. 3 , LLFormer is first applied for low-light restoration, followed by ResNet-50–based facial feature extraction and final multi-class drowsiness classification using a fine-tuned InceptionV3 model augmented with spatial and channel attention to emphasize fatigue-relevant facial cues. Fig. 3. Open in a new tab Proposed method for drowsiness detection with real-time image sequence analysis. Data preprocessing Low-light vision preprocessing For the low-light vision task, datasets such as LOL and ExDark are used, which contain images captured in suboptimal lighting conditions. Given the challenges posed by low-light environments, several preprocessing techniques are employed to optimize image quality for model training. First, pixel normalization is applied to rescale pixel values to a standard range of [0, 1], ensuring consistency and enhancing the efficiency of model training. To counteract the poor illumination in the images, advanced techniques like histogram equalization and contrast enhancement are used, improving the visibility of critical features. Additionally, noise reduction methods, such as Gaussian blur and median filtering, are employed to smooth out visual artifacts that are often prevalent in low-light images. The images are resized to a fixed resolution (e.g., 224 224 pixels for input into InceptionV3) to ensure consistency across the dataset while maintaining the aspect ratio. Moreover, data augmentation strategies, including random rotations, flips, and cropping, are applied to increase the robustness of the model. Drowsiness detection preprocessing For the drowsiness detection task, datasets such as Yawn_eye_dataset_new, Driver Drowsiness Dataset (DDD), Glasses, MRL Eye Dataset, Nthuddd2, and UTA-RLDD are utilized. Preprocessing for these datasets is designed to extract relevant facial features indicative of drowsiness, such as eye blinking, eyelid movement, and yawning. The preprocessing process begins with label verification to ensure accurate class representation, where both drowsy and non-drowsy images are well-represented. In the case of imbalanced datasets, data balancing techniques such as oversampling or undersampling are employed to ensure an equal distribution of classes. To further enhance the quality of the data, image enhancement techniques such as super-resolution algorithms and contrast adjustment are applied, especially when images have low resolution or motion blur. Additionally, temporal data handling is critical when working with video streams. Frames are sampled at regular intervals to ensure smooth temporal flow, and interpolation techniques are applied to handle cases of missing frames or low frame rates. Once the preprocessing steps are complete, the data is ready to be fed into the model. Deep feature extraction In the proposed framework, ResNet-50 is employed as a deep facial feature extractor and fine-tuned on the DDD and NTHU-DDD2 datasets to learn discriminative representations. The network produces a 2048-dimensional feature vector via global average pooling, which is subsequently transformed into a structured 3D feature tensor using a feature-to-3D mapping strategy following 47 . This representation preserves spatial correlations and enables architecturally compatible integration with InceptionV3 for multi-scale feature analysis. To enhance interpretability, Grad-CAM is applied to visualize salient facial regions, such as the eyes and mouth, by highlighting activations from the final convolutional layer, providing insight into fatigue-related decision cues. For spatiotemporal modeling, deep features (2048-dimensional) extracted from individual video frames are organized into an observation matrix and aggregated over time to form a unified representation. Mean and root mean square (RMS) aggregation are employed, with RMS providing improved sensitivity to dynamic facial movements. Frame-level features are sampled using a sliding temporal window of approximately 833 ms, enabling continuous, frame-based prediction updates. This windowed temporal aggregation supports real-time drowsiness detection by capturing evolving facial dynamics and fatigue-related motion patterns in streaming video. Proposed solution Fine-tuned low-light vision model As illustrated in Figs. 4 and 5 , the proposed framework integrates LLFormer as a preprocessing module to address low-light conditions that adversely affect drowsiness detection. LLFormer employs an axis-based multi-head self-attention mechanism and cross-layer attention fusion to enhance image quality while maintaining computational efficiency, enabling real-time processing under challenging illumination. Optimized for high-resolution inputs, this module improves brightness, contrast, and structural detail, ensuring reliable facial feature extraction. To ensure compatibility with the downstream InceptionV3-based drowsiness detection model augmented with dual attention, LLFormer is fine-tuned through targeted adjustments to its transformer parameters and optimization settings, enhancing its effectiveness for low-light driver monitoring scenarios. Fig. 4. Open in a new tab Fine-tuned LLFormer model for low-light enhancement. Fig. 5. Open in a new tab Fine-tuned InceptionV3 model with spatial and channel attention. During fine-tuning, LLFormer was systematically optimized to improve stability, representational capacity, and reconstruction quality. The feed-forward dimensions and attention heads were expanded, dropout was adjusted to mitigate overfitting, and layer normalization was replaced with RMSNorm for improved numerical stability. Architectural refinements included preliminary convolutional layers, dynamic cross-layer fusion, additional skip connections, and enhanced decoder refinement layers to preserve structural details. Training stability was improved using AdamW with a reduced learning rate ( – ), cosine decay scheduling with warm-up, and a composite loss comprising MSE, SSIM, and edge loss. Batch size, gradient accumulation, initialization strategies, and output scaling were carefully tuned to ensure stable convergence and high-quality enhancement under extreme low-light conditions. Fine-tuned InceptionV3 model with spatial and channel attention InceptionV3 is a deep convolutional neural network designed for efficient large-scale image classification through multi-scale feature extraction using inception modules that combine filters of different sizes. Its use of factorized and asymmetric convolutions reduces computational cost while preserving representational capacity. Pre-trained on ImageNet, InceptionV3 provides strong generalization and serves as an effective backbone for transfer learning in domain-specific tasks, including facial analysis and driver drowsiness detection. The InceptionV3 model is fine-tuned for drowsiness detection using ImageNet pre-trained weights, preserving generic visual features while adapting to drowsiness-specific facial cues. Input images are resized to to reduce computational cost and support real-time in-vehicle deployment. Core convolutional and inception modules are retained for multi-scale feature extraction, while a Spatial Pyramid Pooling (SPP) layer enhances scale-invariant representation. The classification head comprises a 64-unit dense layer, dropout (0.4), and a three-neuron softmax output to classify alert, drowsy, and very drowsy states. L2 regularization and dropout are applied, with focal loss or weighted categorical cross-entropy to address class imbalance. Fine-tuning uses the AdamW optimizer with a learning rate of , supported by EarlyStopping, ReduceLROnPlateau and data augmentation. Performance is evaluated on a custom drowsiness dataset. Integration with spatial and channel attention mechanism Accurate driver drowsiness detection depends on the reliable extraction of subtle facial cues such as eye closure, blinking patterns, yawning, and head movements. To enhance the sensitivity of the proposed framework to these indicators, a dual attention strategy is employed that integrates spatial attention and channel attention mechanisms. This formulation enables the network to jointly learn where to focus within the facial region and what feature channels contribute most significantly to drowsiness-related representations, thereby improving robustness under real-world driving conditions. The Spatial Attention Module (SAM) is designed to enhance discriminative facial regions by modeling long-range spatial dependencies while preserving fine-grained spatial structure. The module employs a cascade of dilated convolution layers followed by a lightweight attention map generator. Dilated convolutions expand the effective receptive field without increasing parameter count or reducing spatial resolution, allowing the network to capture contextual relationships distributed across the face. For an input feature map , the dilated convolution operation at spatial location ( i , j ) is defined in Eq. 1 . 1 where w ( m , n ) denotes the convolution kernel weights and d represents the dilation factor. Using two successive dilated convolutions with kernel size and dilation rates and , the effective receptive field grows according to Eq. 2 2 resulting in a receptive field, which is well suited for capturing spatially distributed drowsiness cues such as eye closure and mouth movements. The output feature maps from the dilated convolution layers are fused via element-wise multiplication and passed through a convolution to generate the spatial attention map given in Eq. 3 3 where denotes the sigmoid activation function. The attention map V is applied to the input feature map through element-wise multiplication, yielding a spatially recalibrated representation that emphasizes diagnostically relevant regions while suppressing background and non-informative areas. The SAM is integrated into intermediate convolutional stages of the InceptionV3 backbone to refine spatial features at multiple levels of abstraction. Complementing spatial refinement, the Channel Attention Module (CAM) models inter-channel dependencies to identify feature channels most relevant to drowsiness detection. Given an input feature map , global average pooling and global max pooling are applied across spatial dimensions to generate compact channel descriptors as defined in Eq. 4 : 4 These descriptors are processed through a shared multi-layer perceptron (MLP), and the channel attention map is computed as shown in Eq. 5 5 where denotes the sigmoid activation. Channel-wise recalibration is then performed via Eq. 6 6 which amplifies channels carrying salient drowsiness-related information while suppressing less relevant responses. To account for the temporal characteristics of drowsiness cues such as blinking frequency and yawning duration, the pooling operations in the CAM are extended to short sequences of consecutive frames using temporal average and max pooling. The reduction ratio of the MLP is empirically set to to balance computational efficiency and representational capacity. The CAM is incorporated within convolutional blocks to progressively enhance feature discrimination throughout the network. Finally, the Spatial–Channel Attention Module (SCAM) sequentially combines channel attention followed by spatial attention, enabling complementary refinement of feature representations. Channel attention first emphasizes informative feature channels, after which spatial attention localizes critical facial regions. This integrated attention strategy allows the network to robustly detect subtle indicators of driver drowsiness under challenging conditions such as varying illumination, occlusions, and pose variations, while maintaining computational efficiency suitable for real-time deployment. Temporal feature modeling via attention-level aggregation Driver drowsiness is a temporal phenomenon characterized by prolonged eye closure, yawning, and head tilting. To satisfy real-time in-vehicle deployment constraints, the proposed framework employs a fine-tuned 2D InceptionV3 operating on individual frames, ensuring low latency and computational efficiency. Temporal dependencies are incorporated externally through a Channel Attention Module (CAM), where short frame sequences undergo temporal average and max pooling to produce enriched channel descriptors. This design emphasizes channels with consistent or peak temporal activations, capturing duration-based drowsiness cues while preserving spatial discrimination and architectural simplicity. Dataset description The proposed framework addresses two sequential tasks low-light image enhancement and driver drowsiness detection and therefore employs task-specific datasets in a staged and well-isolated manner. This design avoids data leakage between tasks, ensures methodological clarity, and allows independent evaluation of each module within the overall pipeline. Low-light enhancement datasets Each drowsiness detection dataset is treated as an independent learning task. A separate instance of the proposed model is trained and evaluated on each benchmark using its official subject-independent train/validation/test splits. To ensure consistency across benchmarks, all datasets are mapped to a common three-class label space (alert, drowsy, very drowsy) and processed using identical preprocessing pipelines, network architecture, and training hyperparameters. Dataset boundaries are strictly preserved, and performance is reported independently for each dataset to ensure fair, transparent, and reproducible evaluation. Drowsiness detection datasets and training protocol The proposed framework follows a staged training protocol to ensure clarity and prevent data leakage. The low-light enhancement module (LLFormer) is trained exclusively on the LOL and ExDark datasets and is subsequently fixed as a preprocessing component, with no joint optimization with the drowsiness detection network. The drowsiness detection model is trained as a single unified network using samples from YAWDD, DDD, NTHU-DDD2, MRL-Glasses, and UTA-RLDD, where each dataset remains logically separate and is not combined into a single training pool. All datasets are first mapped to a common three-class label space ( alert , drowsy , very drowsy ), and training batches are constructed using stratified sampling to balance dataset contributions while applying identical preprocessing across datasets. For evaluation, each dataset is tested independently using its official splits, ensuring fair assessment while preserving dataset-specific characteristics. By combining these datasets, the proposed approach achieves a comprehensive understanding of drowsiness as seen from Table 5 indicators under diverse environmental, demographic, and contextual variations. The use of both low-light and drowsiness-specific datasets ensures the model’s ability to perform consistently across challenging conditions, making it well-suited for deployment in real-world driver monitoring systems. Table 5. Details of utilized datasets. Dataset name Classes Images Size YAWD Dataset 48 4 2,904 175.84 MB Driver Drowsiness Dataset (DDD) 49 2 41,790 2.76 GB Glasses Dataset 50 2 164 1.1 MB MRL Eye Dataset 51 2 84,898 328.2 MB NTHU-DDD 52 2 66,520 3.02 GB UTA-RLDD Dataset 53 2 29,218 1.45 GB Open in a new tab Training strategy and evaluation protocol LLFormer was trained independently on dedicated low-light datasets and subsequently frozen, serving as a fixed preprocessing stage for the InceptionV3-based drowsiness detection model with spatial and channel attention, without joint or end-to-end optimization. Quantitative evaluations were conducted exclusively on publicly available benchmarks, while a limited in-house dataset was used only for qualitative robustness assessment. All drowsiness datasets followed a strict subject-independent split (80%/10%/10% for training/validation/testing) prior to frame extraction to prevent identity and temporal leakage. Fold-wise evaluation was employed, and results are reported as average subject-wise accuracy. Class imbalance was handled using class-aware sampling and weighted losses, and each dataset was evaluated independently to avoid temporal correlation and optimistic bias. Installation environment Model training and evaluation were performed on a high-performance desktop workstation equipped with dual Intel Xeon CPUs, 64 GB DDR4 ECC memory, NVMe SSD storage, and an NVIDIA GeForce RTX 4090 GPU. This configuration supported efficient training and evaluation of the InceptionV3-based drowsiness detection model with spatial attention and the transformer-based LLFormer for low-light enhancement. For deployment, the trained models were implemented on an NVIDIA Jetson Nano 2GB edge computing device, featuring a 128-core Maxwell GPU and 2 GB LPDDR4 memory. This platform was used to evaluate real-time inference performance under resource-constrained conditions for low-light enhancement and driver drowsiness detection, demonstrating suitability for embedded and edge-based applications. Baseline low-light vision algorithms Several representative low-light enhancement methods were selected as baselines to evaluate the proposed framework within a multi-stage driver drowsiness detection pipeline. RUAS 42 is an unsupervised Retinex-based attention network that estimates illumination and reflectance without paired supervision, offering strong generalization across illumination conditions. While effective in preserving structure and suppressing noise, it is designed for generic enhancement and does not explicitly model task-specific facial semantics, which may limit downstream drowsiness detection performance under extreme low-light conditions. CLAHE 5 is a classical contrast enhancement technique that improves local contrast with constrained noise amplification. Although computationally efficient and widely used in driver monitoring systems, it lacks semantic awareness and can amplify noise in severely dark regions, affecting facial feature consistency. EnlightenGAN 7 is an unsupervised GAN-based method employing global–local discriminators and perceptual constraints to enhance low-light images without paired data. Despite improving visual quality, its high computational cost and potential artifact generation can negatively impact downstream facial feature extraction. LLFormer 31 is a lightweight transformer-based model that integrates Retinex principles with efficient attention mechanisms, achieving a favorable balance between enhancement quality and computational efficiency while preserving fine-grained facial details critical for drowsiness detection. The selected baselines reflect commonly used classical and learning-based enhancement approaches suitable for integration into driver monitoring pipelines. More computationally intensive methods were excluded due to limited suitability for real-time, edge-constrained deployment, whereas LLFormer offers an effective trade-off between performance and efficiency for low-light drowsiness detection. Baseline drowsiness detection models To benchmark the proposed driver drowsiness detection framework, a diverse set of baseline models was selected, spanning conventional convolutional networks, lightweight mobile architectures, temporal models, and transformer-based approaches commonly used in vision-based fatigue analysis. The evaluated baselines include VGG19 54 , DenseNet 55 , LSTM 56 , MobileNetV3 57 , GhostNet 58 , EfficientNet-Lite 59 , YOLOv8n-Face 60 , ShuffleNetV2 61 , Vision Transformer (ViT) 62 , and Swin Transformer 63 . All baseline architectures were implemented in their canonical forms without architectural modifications. For fair comparison, all models were trained and evaluated using identical datasets, subject-independent train/validation/test splits, input resolution ( ), normalization schemes, and data augmentation strategies. Low-light enhancement using LLFormer was applied uniformly at the input level across all baselines to eliminate illumination-induced bias. Transformer-based models such as ViT and Swin Transformer were included for completeness but incur higher computational and memory overhead compared to CNN-based baselines. The proposed framework balances detection accuracy and deployment efficiency through a fine-tuned InceptionV3 architecture augmented with spatial and channel attention. Fine tuning setup The following subsections present the fine-tuning strategies and training configurations adopted for the different components of the proposed framework. The discussion covers the optimization of the low-light enhancement module, the drowsiness classification network, the integration of attention mechanisms, and the unified training protocol employed across all experiments. LLFormer fine-tuning for low-light enhancement LLFormer was fine-tuned for low-light facial image enhancement using a stable and efficient training strategy. Training was performed for 35 epochs with early stopping and gradient accumulation, and optimized using AdamW with a reduced learning rate to , cosine decay scheduling, and warm-up to adapt pretrained weights. Architectural enhancements included preliminary convolutional layers for improved low-level feature extraction, decoder refinement layers for enhanced reconstruction, and a Cross-Attention Fusion Block for adaptive multi-level feature aggregation. Regularization employed attention dropout, RMS normalization, and additional skip connections to preserve spatial information and improve gradient flow. The objective function combined MSE, SSIM, and edge-aware loss, with newly introduced layers initialized using Xavier and He schemes; complete training and architectural details are reported in Table 6 . Table 6. Fine tuned LLFormer model parameters. Aspect Original LLFormer Fine-tuned LLFormer Encoder Layers Hierarchical Transformer Blocks (ATBs) ATBs + Preliminary Convolutional Layers for improved feature extraction Decoder Layers Transformer-based reconstruction Added refinement layers for improved quality of reconstructed low-light regions Cross-Layer Fusion CAFB with static fusion weights CAFB with dynamic fusion weights for adaptive feature integration Transformer Parameters Multi-head attention (fixed heads) Increased attention heads for finer granularity and improved spatial focus; Enhanced axis-based attention Feed-Forward Network (FFN) Standard FFN dimensions Expanded FFN dimensions for processing intricate feature representations Attention Dropout None or minimal Introduced/moderated dropout to mitigate overfitting Normalization LayerNorm RMSNorm for improved numerical stability in low-light scenarios Skip Connections Limited Additional skip connections for better gradient flow and feature preservation Loss Functions MSE Combined MSE + SSIM + Edge Loss for perceptual quality and edge detail preservation Optimization Standard learning rate, Adam optimizer Reduced learning rate (1e-5 to 5e-6), switched to AdamW, cosine decay scheduler with warm-up steps Batch Size Standard batch size Adjusted with gradient accumulation to simulate larger effective batch sizes for GPU memory efficiency Activation Function None specific Sigmoid activation for pixel intensity scaling Preliminary Layers Not present Added convolutional layers before encoder for better low-light feature extraction Refinement Decoder Layers Not present Added to improve quality in challenging low-light and noisy scenarios Positional Encoding Standard Upgraded for enhanced spatial awareness Parameter Initialization Default Xavier/He initialization for stable convergence of new layers Post-Processing Basic denoising Optional advanced denoising filters for extreme low-light scenarios Open in a new tab Fine-tuning for drowsiness classification network InceptionV3 was employed as the core classifier for its strong multi-scale feature extraction capability. The network was initialized with ImageNet-pretrained weights and fine-tuned by selectively unfreezing higher convolutional blocks to adapt to driver drowsiness–specific facial cues while maintaining generalization. Inputs were resized to pixels for computational efficiency. Optimization used AdamW with a learning rate of 0.0001, with regularization via dropout (0.4) and L2 weight decay. Class imbalance was addressed using weighted categorical cross-entropy combined with focal loss. Data augmentation, including random rotations and illumination perturbations, improved robustness under real-world driving conditions. The classification head was replaced with a task-specific fully connected layer for three-class prediction (alert, drowsy, severely drowsy). Full training and configuration details are summarized in Table 7 . Table 7. Fine tuned InceptionV3 model parameters. Aspect Original InceptionV3 model Fine-tuned InceptionV3 model Architecture Inception modules with 1 1, 3 3, 5 5 convolutions for multi-scale feature extraction. Factorized and asymmetric convolutions for computational efficiency. Auxiliary classifiers for improved gradient flow. Dense layers with ImageNet-specific fully connected head for 1000 classes. Retained Inception modules for multi-scale feature extraction. Spatial Pyramid Pooling (SPP) layer added for multi-scale handling. Auxiliary classifiers replaced with custom drowsiness-specific prediction heads. Fully connected layers restructured for 3-class classification. Pre-Training Pre-trained on ImageNet dataset for 1000-class large-scale image classification tasks. Pre-trained weights retained, frozen for initial layers. Fine-tuned deeper layers for drowsiness-specific cues using a custom dataset. Input Resolution Input resolution: 299 299 3 for high-resolution feature extraction. Input resolution reduced to 224 224 3 for computational efficiency, especially for real-time systems. Retained essential facial features for drowsiness cues. Loss Function Standard categorical cross-entropy for multi-class classification. Focal loss and weighted categorical cross-entropy to address class imbalance in drowsiness dataset. Focus on the underrepresented ‘drowsy‘ class. Regularization Dropout with a default rate of 0.2 in dense layers. Basic L2 weight decay for regularization. Dropout rate increased to 0.4 in deeper layers to mitigate overfitting. Advanced L2 weight decay combined with AdamW optimizer for better regularization. Optimizer RMSprop optimizer for training stability. Switched to AdamW optimizer for better handling of sparse gradients and improved generalization. Learning Rate Initial learning rate: 0.001 with exponential decay. Learning rate reduced to 0.0001 for fine-tuning, preserving pre-trained weights while adapting to drowsiness detection. Callbacks Basic monitoring without advanced callbacks for dynamic adjustment. EarlyStopping to halt training upon no improvement. ReduceLROnPlateau for dynamic learning rate reduction during plateaus. Data Augmentation Limited augmentation (e.g., flips, crops). Extensive augmentation: random rotations, brightness changes to simulate real-world driving conditions, enhancing robustness. Output Layer Fully connected dense layer with 1000 neurons and softmax activation for ImageNet classification. Fully connected dense layer with 64 neurons, dropout, and final layer with 3 neurons using softmax for alert, drowsy, very drowsy states. Performance Enhancements Limited to static feature extraction. Relies on pre-trained spatial features without domain-specific optimization. Dynamic feature extraction via SPP for better multi-scale representation. Domain-specific enhancements tailored for blinking, yawning, and head tilts. Evaluation Benchmark datasets like ImageNet focusing on accuracy for general image classification. Evaluated on custom drowsiness dataset focusing on driver-specific facial cues. Emphasis on real-time applicability and low-latency performance. Real-Time Suitability Not optimized for real-time performance in constrained environments. Lightweight design through resolution reduction and fine-tuning, enabling real-time inference in driver monitoring systems. Open in a new tab Integration of spatial and channel attention mechanisms Spatial and channel attention modules were jointly trained with the classifier to enhance discriminative feature learning, while all baseline hyperparameters were retained. Spatial attention modeled local and global facial dependencies (eyes and mouth) using dilated and convolutions, whereas channel attention captured inter-channel relationships via global average and max pooling followed by a shared MLP, using a channel reduction ratio of 8. Spatial attention was applied after intermediate convolutional blocks, and channel attention before the fully connected layers. Implicit temporal sensitivity was achieved by aggregating features across consecutive frames, enabling modeling of blinking frequency and yawning duration. Feature recalibration employed multiplicative weighting. Architectural placement, design, and notation–where F denotes input features, V / M attention maps, / fine-tuned maps, and element-wise multiplication–are summarized in Table 8 . Table 8. Fine-tuned InceptionV3 model with attention module parameters. Aspect Original SAM Fine-tuned SAM Original CAM Fine-tuned CAM Purpose Generic spatial saliency detection Optimized for drowsiness-relevant facial regions (eyes, mouth, head pose) Generic channel dependency modeling Prioritizes fatigue-related motion cues Key Features Basic spatial weighting Multi-scale spatial emphasis via dilated convolutions Global pooling with MLP-based weighting Temporal-aware channel reweighting Architecture Shallow attention blocks Dilated convolutions ( ) + projection Standard squeeze-and-excitation MLP Shared MLP with temporal pooling Receptive Field Limited and fixed Expanded multi-scale context Global aggregation Context-aware temporal aggregation Attention Map Generation Sigmoid-normalized convolution outputs Multi-scale convolution + sigmoid gating Pooling-based channel descriptors Pooling + temporal encoding + sigmoid gating Feature Recalibration Spatially selective enhancement of critical regions Channel-prioritized feature amplification Integration Point After intermediate layers After 2nd and 4th convolutional blocks After feature extraction Before fully connected layers Temporal Sensitivity Not explicitly modeled Implicitly enhanced via multi-scale context Static channel reweighting Enhanced via temporal pooling across frames Loss Interaction Indirect effect on classification Improves class separability for drowsiness states Generic classification support Enhances sensitivity to drowsiness-specific cues Performance Gain Improves spatial localization Robust under occlusion and low-light Improves global representation Detects subtle fatigue-related patterns Open in a new tab Training protocol All models were trained under a unified experimental protocol to ensure fair comparison and reproducibility. A fixed training duration of 35 epochs was maintained across configurations, with early stopping and validation-based checkpointing employed to retain the best-performing models. Hyperparameter selection and optimization strategies were tailored to individual model requirements while adhering to a consistent training framework. Evaluation metrics Following metrics are being considered: Low-light vision metrics Peak Signal-to-Noise Ratio (PSNR) : PSNR quantifies the ratio between the maximum possible signal power and the power of corrupting noise, measured in decibels (dB). It is widely used to evaluate image quality by comparing the luminance similarity between the reconstructed and reference images. Higher PSNR values indicate better reconstruction fidelity. For an 8-bit image, the PSNR is defined in Eq. 7 (where MAX is the maximum possible pixel value and MSE is the Mean Squared Error): 7 Structural Similarity Index Measure (SSIM) : SSIM assesses the perceptual similarity between the reference and reconstructed images, taking into account luminance, contrast, and structural information. Unlike PSNR, SSIM models human visual perception, providing a normalized score in the range , where 1 indicates perfect structural similarity. It is computed as shown in Eq. 8 : 8 Mean Squared Error (MSE) : MSE measures the average squared difference between the pixel intensities of the reconstructed and reference images. It is a direct indicator of reconstruction error, with smaller values indicating better performance. Formally, as given in Eq. 9 : 9 Drowsiness detection metrics Accuracy : Accuracy represents the ratio of correctly classified instances to the total number of instances, providing an overall measure of the model’s performance. It is expressed in Eq. 10 : 10 Precision : Precision, also known as Positive Predictive Value, evaluates the proportion of true positive predictions among all positive predictions. It is especially important in imbalanced datasets to assess the relevance of positive predictions, as defined in Eq. 11 : 11 Recall : Recall, or Sensitivity, measures the ability of the model to correctly identify all relevant instances in the dataset. It is defined in Eq. 12 : 12 To address the pronounced class imbalance between alert and drowsy frames, multiple complementary strategies were employed beyond the use of weighted loss functions. During training, class-aware sampling was adopted to ensure adequate representation of minority drowsy samples within each mini-batch, thereby mitigating the dominance of alert frames without introducing artificial frame-level duplication that could induce temporal bias. In addition, the evaluation protocol was explicitly designed to be imbalance-aware and not solely driven by overall accuracy. Balanced performance metrics, including precision, recall, and F1-score, were adopted as primary evaluation criteria to enable a fair and reliable assessment of both majority (alert) and minority (drowsy) classes. These metrics were reported on a dataset-wise basis across all six benchmark datasets, thereby avoiding performance inflation arising from skewed class distributions. Particular emphasis was placed on recall and F1-score (to compute robustness), as sensitivity to drowsy states is critical for safety-oriented driver monitoring applications. Results and discussion The proposed methods have been evaluated qualitatively and quantitatively. Quantitative analysis The performance of our proposed system, comprising a fine-tuned InceptionV3 architecture enhanced with dual attention mechanisms, i.e., spatial and channel attention for drowsiness detection, combined with low-light vision enhancement via a fine-tuned LLFormer model, demonstrates substantial advancements over existing state-of-the-art (SOTA) methodologies in both domains. After training our model on the combined ExDark and LOL datasets, the evaluation of low-light vision algorithms using standard metrics, namely Mean Squared Error (MSE), Structural Similarity Index Measure (SSIM), and Peak Signal-to-Noise Ratio (PSNR), underscores the superior performance of our fine-tuned LLFormer model compared to existing methods, as in Figs. 6 , 7 and 8 . As seen in Table 9 , our model achieves the lowest MSE of 24.35, significantly outperforming RUAS (29.59), EnlightenGAN (27.59), and CLAHE (33.98), indicating higher fidelity in reconstructed images. Additionally, it attains the highest SSIM score of 0.76, reflecting superior structural preservation in low-light enhancements compared to RUAS (0.59), EnlightenGAN (0.67), and CLAHE (0.51). Furthermore, the fine-tuned LLFormer secures the highest PSNR value of 30.02, surpassing RUAS (29.02), EnlightenGAN (27.61), and CLAHE (25.02), demonstrating its efficacy in producing visually appealing and high-quality enhancements. These results are derived by averaging all the metrics computed across approximately 1500 test images, ensuring comprehensive and reliable evaluation. Fig. 6. Open in a new tab Comparison of low-light vision models on the basis of MSE. Fig. 7. Open in a new tab Comparison of low-light vision models on the basis of SSIM. Fig. 8. Open in a new tab Comparison of low-light vision models on the basis of PSNR. Table 9. Comparison of fine-tuned LLFormer with other models. Metric RUAS EnlightenGAN Fine-Tuned LLFormer CLAHE MSE 29.59 27.59 24.35 33.98 SSIM 0.59 0.67 0.76 0.51 PSNR 29.03 27.61 30.02 25.02 Open in a new tab Hence, LLFormer was selected as the low-light enhancement module in the proposed pipeline due to its favorable trade-off between enhancement fidelity, architectural efficiency, and compatibility with downstream drowsiness detection. Unlike classical techniques such as CLAHE, LLFormer preserves semantic facial structures under extreme low-light conditions, which is critical for reliable feature extraction. Compared to GAN-based and multi-branch transformer models, LLFormer exhibits lower computational overhead and more stable inference behavior, making it suitable for real-time edge deployment. Moreover, its attention-driven formulation aligns naturally with the subsequent spatial and channel attention modules in the proposed framework, enabling seamless integration without redundant architectural complexity. Following training on the YAWDD dataset, the learning behavior of the proposed InceptionV3-based drowsiness detection model is illustrated in Fig. 9 . The training and validation accuracy curves demonstrate stable convergence with a small generalization gap, while the corresponding loss curves indicate effective optimization without overfitting. These trends confirm the robustness of the proposed architecture and its suitability for reliable drowsiness detection under challenging conditions. Fig. 9. Open in a new tab Accuracy curve for training and validation of the proposed InceptionV3 model on YAWDD. Table 10 and Fig. 10 presents a comprehensive comparison of classification accuracy across multiple benchmark datasets, including traditional CNN-based models, lightweight architectures, transformer-based models, and the proposed approach. The proposed model consistently achieves the highest accuracy across all evaluated datasets, obtaining 97.34% on YAWDD, 98.53% on DDD, 96.18% on the Glasses dataset, 98.12% on MRL Eye, 98.23% on NTHU-DDD2, and 97.81% on UTA-RLDD. Table 10. Comparison of the proposed model with SOTA models across multiple datasets (Accuracy %). Model YAWDD DDD Glasses MRL Eye NTHU-DDD2 UTA-RLDD VGG19 85.52 86.76 82.41 89.28 88.92 87.04 DenseNet 88.23 89.75 86.92 90.11 90.67 89.11 LSTM 93.16 94.24 91.35 95.07 96.57 94.31 MobileNetV3 91.82 92.47 89.66 93.18 94.11 92.74 EfficientNet-Lite 94.03 95.28 92.84 96.01 96.72 95.64 ShuffleNetV2 90.76 91.58 90.42 92.67 93.14 91.93 GhostNet 89.91 90.73 87.95 91.88 92.61 90.84 YOLOv8n-Face 93.41 94.09 91.12 95.33 95.81 94.27 Swin Transformer 96.42 97.15 94.88 97.54 97.68 96.93 Vision Transformer (ViT) 95.87 96.63 94.11 97.02 97.31 96.44 Proposed Model 97.34 98.53 96.18 98.12 98.23 97.81 Open in a new tab Fig. 10. Open in a new tab Comparison between the performance of the models on the six used datasets. While transformer-based models such as Swin Transformer and Vision Transformer demonstrate strong performance due to their global self-attention mechanisms, they are primarily optimized for generic image understanding tasks. In contrast, the proposed architecture is explicitly designed for driver drowsiness detection, integrating low-light enhancement, task-specific feature extraction, and attention mechanisms. This targeted design enables superior generalization across datasets characterized by varying illumination conditions, subject variability, and occlusion patterns. The Receiver Operating Characteristic (ROC) curve, shown for various datasets in Fig. 11 , provides a comprehensive view of model performance. It highlights the balance between sensitivity (True Positive Rate) and Specificity (True Negative Rate), crucial for assessing model accuracy. The ROC curve is a key tool for evaluating a model’s ability to discriminate between positive and negative instances, with a curve closer to the top-left corner indicating superior discriminatory power, reflecting higher sensitivity and specificity while minimizing false positives and negatives. It displays the ROC curves for several machine learning models VGG19, DenseNet, LSTM, and the Proposed Model across datasets such as YAWDD, DDD, Glasses, MRL Eye, NTHU-DDD2, and UTA-RLDD. The area under the ROC curve (AUC) is provided for each model, with values closer to 1 indicating better classification performance. This visualization allows for a comparative evaluation of the models’ strengths and weaknesses, aiding in informed decisions about model selection and deployment. Fig. 11. Open in a new tab ROC curves of different models and datasets. The observed performance gains highlight the effectiveness of combining LLFormer-based low-light preprocessing with resonance-based feature extraction and a fine-tuned Inception-V3 model augmented with both spatial and channel attention modules. Performance and efficiency analysis Table 11 summarizes the robustness and temporal stability of all evaluated models under challenging operating conditions. The proposed architecture achieves the highest F1-score (0.96), outperforming transformer-based baselines such as Vision Transformer (0.92) and Swin Transformer (0.93), as well as lightweight CNN models, indicating consistent gains across architectural families. In addition, it records the lowest false alarm rate (0.21 per minute), corresponding to a relative reduction of approximately 25–32% compared to transformer-based methods, highlighting improved temporal reliability. These results reflect the combined effect of LLFormer-based low-light enhancement and spatial–channel attention, which enhance discriminative facial cues while suppressing transient noise. Table 11. Robustness and temporal stability analysis under challenging conditions. Model F1-score (Robustness) False alarms/min (temporal stability) MobileNetV3 0.86 0.42 ShuffleNetV2 0.84 0.47 GhostNet 0.83 0.51 EfficientNet-Lite 0.89 0.34 YOLOv8n-Face 0.90 0.29 Inception-v3 0.91 0.26 Vision Transformer 0.92 0.31 Swin Transformer 0.93 0.28 Proposed Model 0.96 0.21 Open in a new tab Table 12 reports the single-frame, end-to-end inference complexity of all evaluated models in terms of FLOPs, memory footprint, latency, and parameter count, measured on an NVIDIA Jetson Nano (2 GB) with batch size = 1 and input resolution , including LLFormer preprocessing. Lightweight CNN-based models (MobileNetV3, ShuffleNetV2, and GhostNet) exhibit sub-GFLOP complexity (0.19–0.28 GFLOPs) with minimal memory usage ( 5–6 MB), while YOLOv8n-Face incurs a moderate computational cost of 6.9 GFLOPs. Transformer-based architectures are substantially heavier, requiring 16.5–18.2 GFLOPs and over 85 MB of memory. The proposed LLFormer–ResNet-50–InceptionV3 architecture has the highest FLOP count (20.3 GFLOPs) yet achieves lower single-frame latency (27.4 ms) and reduced memory usage (52.8 MB) than transformer baselines, confirming that FLOPs alone do not determine runtime efficiency. Latency values reported here correspond to single-frame inference and are distinct from streaming FPS, which is analyzed separately. Table 12. Memory and computational efficiency comparison of different models. Model Memory (MB) FLOPs (G) Latency (ms) Params (M) MobileNetV3 6.0 0.24 7.0 5.4 ShuffleNetV2 5.1 0.19 6.2 2.3 GhostNet 4.9 0.28 6.0 2.6 EfficientNet-Lite 10.4 0.62 10.1 4.7 YOLOv8n-Face 22.6 6.9 23.8 3.2 Vision Transformer 89.5 18.2 62.4 86.4 Swin Transformer 94.8 16.5 59.6 88.2 Proposed Model 52.8 20.3 27.4 110.0 Open in a new tab Performance and efficiency analysis Statistical analysis The proposed framework was evaluated on an NVIDIA Jetson Nano (2 GB) under controlled and realistic conditions. In optimized real-time streaming deployment, it achieves stable performance of 25–30 FPS for inputs, with moderate GPU utilization ( 65–70%) and CPU usage below 40%. The inference memory footprint remains within 1.3–1.5 GB, power consumption ranges from 5.5–7 W, and device temperature stays below 65 C under passive cooling. For reproducible batch-level analysis, ten baseline models and the proposed method were evaluated on the NTHU-DDD dataset using a fixed 888-frame sequence, batch size = 1, identical preprocessing, and without asynchronous optimization. Under these conditions, the proposed model processes 888 frames in 85.45 s (10.39 FPS) while achieving the highest detection performance, as reported in Table 13 . The distinction between batch-level throughput and optimized real-time streaming execution explains the observed differences in reported frame rates. Table 13. Comparative performance evaluation of drowsiness detection models on the NTHU-DDD dataset. Model Frames Time (s) FPS Drowsy frames Drowsy (%) Events Face Det. Yawns VGG19 888 84.92 10.46 760 85.59 25 870 750 DenseNet 888 82.18 10.80 770 86.71 26 873 755 LSTM 888 80.44 11.04 778 87.61 27 874 757 GhostNet 888 77.03 11.53 789 88.87 28 879 770 ShuffleNetV2 888 76.52 11.61 796 89.64 29 884 780 MobileNetV3 888 75.08 11.82 805 90.64 30 888 798 EfficientNet-Lite 888 74.16 11.98 823 92.65 33 894 809 YOLOv8n-Face 888 78.07 11.37 800 90.09 31 891 800 Vision Transformer (ViT) 888 23.84 37.25 828 93.24 33 895 813 Swin Transformer 888 80.10 11.08 832 93.69 34 896 816 Proposed Model 888 85.45 10.39 850 95.73 37 901 829 Open in a new tab To strengthen statistical rigor, a multi-trial significance analysis was conducted using paired hypothesis testing with three independent trial settings ( and 30). For each configuration, the proposed framework was compared against all baseline models across all benchmark datasets to assess both statistical significance and robustness to data partitioning and stochastic initialization (Table 14 ). All baselines were implemented in their canonical forms and trained under identical conditions, including datasets, subject-independent splits, input resolution ( ), normalization, data augmentation, and uniform LLFormer-based low-light preprocessing. Architectural enhancements—ResNet-50 feature extraction, fine-tuned InceptionV3 classification, and spatial–channel attention—were applied exclusively to the proposed model. As reported in Table 15 (a) & (b), statistical significance was evaluated using a paired t -test 64 applied to accuracy values obtained from repeated independent trials and reported as mean ± standard deviation. Across all configurations, p -values remain below 0.05, with many comparisons below 0.001. The decreasing p -values with increasing K reflect increased statistical power rather than random variation. Table 14. Quantitative explainability evaluation of the proposed model on the NTHU-DDD2 dataset. Explainability method Localization accuracy (%) Attribution consistency Temporal stability Grad-CAM 86.7 0.81 0.78 Integrated Gradients 88.3 0.84 0.82 Layer-wise Relevance Propagation (LRP) 89.6 0.86 0.85 Occlusion Sensitivity 83.9 0.79 0.76 LIME 85.1 0.80 0.77 Open in a new tab Table 15. Statistical significance comparison of the proposed model with representative baselines using paired t -test ( ). Dataset Baseline model Baseline accuracy (%) Proposed accuracy (%) p -value (a) YAWDD VGG19 85.52 ± 0.49 97.34 ± 0.28 0.0069 DenseNet 88.23 ± 0.44 97.34 ± 0.28 0.0083 LSTM 93.16 ± 0.55 97.34 ± 0.28 0.0051 GhostNet 91.82 ± 0.44 97.34 ± 0.28 0.0093 ShuffleNetV2 94.03 ± 0.46 97.34 ± 0.28 0.0088 MobileNetV3 90.76 ± 0.48 97.34 ± 0.28 0.0081 EfficientNet-Lite 89.91 ± 0.39 97.34 ± 0.28 0.0112 YOLOv8n-Face 93.41 ± 0.37 97.34 ± 0.28 0.0129 Vision Transformer (ViT) 95.87 ± 0.36 97.34 ± 0.28 0.0148 Swin Transformer 96.42 ± 0.34 97.34 ± 0.28 0.0185 DDD VGG19 86.76 ± 0.45 98.53 ± 0.25 0.0064 DenseNet 89.75 ± 0.41 98.53 ± 0.25 0.0082 LSTM 94.24 ± 0.53 98.53 ± 0.25 0.0048 GhostNet 92.47 ± 0.41 98.53 ± 0.25 0.0098 ShuffleNetV2 95.28 ± 0.43 98.53 ± 0.25 0.0091 MobileNetV3 91.58 ± 0.46 98.53 ± 0.25 0.0079 EfficientNet-Lite 90.73 ± 0.37 98.53 ± 0.25 0.0124 YOLOv8n-Face 94.09 ± 0.36 98.53 ± 0.25 0.0139 Vision Transformer (ViT) 96.63 ± 0.35 98.53 ± 0.25 0.0161 Swin Transformer 97.15 ± 0.33 98.53 ± 0.25 0.0219 Glasses VGG19 82.41 ± 0.53 96.18 ± 0.29 0.0062 DenseNet 86.92 ± 0.47 96.18 ± 0.29 0.0076 LSTM 91.35 ± 0.58 96.18 ± 0.29 0.0049 GhostNet 89.66 ± 0.48 96.18 ± 0.29 0.0079 ShuffleNetV2 92.84 ± 0.49 96.18 ± 0.29 0.0074 MobileNetV3 88.42 ± 0.52 96.18 ± 0.29 0.0067 EfficientNet-Lite 87.95 ± 0.41 96.18 ± 0.29 0.0091 YOLOv8n-Face 91.12 ± 0.39 96.18 ± 0.29 0.0107 Vision Transformer (ViT) 94.11 ± 0.34 96.18 ± 0.29 0.0096 Swin Transformer 94.88 ± 0.33 96.18 ± 0.29 0.0134 (b) MRL-Eye VGG19 89.28 ± 0.44 98.12 ± 0.27 0.0081 DenseNet 90.11 ± 0.39 98.12 ± 0.27 0.0104 LSTM 95.07 ± 0.51 98.12 ± 0.27 0.0056 GhostNet 93.18 ± 0.39 98.12 ± 0.27 0.0113 ShuffleNetV2 96.01 ± 0.41 98.12 ± 0.27 0.0107 MobileNetV3 92.67 ± 0.43 98.12 ± 0.27 0.0095 EfficientNet-Lite 91.88 ± 0.35 98.12 ± 0.27 0.0157 YOLOv8n-Face 95.33 ± 0.33 98.12 ± 0.27 0.0172 Vision Transformer (ViT) 97.54 ± 0.31 98.12 ± 0.27 0.0213 Swin Transformer 97.02 ± 0.29 98.12 ± 0.27 0.0241 NTHU-DDD2 VGG19 88.92 ± 0.42 98.23 ± 0.26 0.0092 DenseNet 90.67 ± 0.38 98.23 ± 0.26 0.0117 LSTM 96.57 ± 0.49 98.23 ± 0.26 0.0061 GhostNet 94.11 ± 0.38 98.23 ± 0.26 0.0131 ShuffleNetV2 96.72 ± 0.40 98.23 ± 0.26 0.0126 MobileNetV3 93.14 ± 0.41 98.23 ± 0.26 0.0108 EfficientNet-Lite 92.61 ± 0.33 98.23 ± 0.26 0.0195 YOLOv8n-Face 95.81 ± 0.31 98.23 ± 0.26 0.0218 Vision Transformer (ViT) 97.68 ± 0.29 98.23 ± 0.26 0.0286 Swin Transformer 97.31 ± 0.28 98.23 ± 0.26 0.0312 UTA-RLDD VGG19 87.04 ± 0.47 97.81 ± 0.31 0.0087 DenseNet 89.11 ± 0.42 97.81 ± 0.31 0.0109 LSTM 94.31 ± 0.54 97.81 ± 0.31 0.0054 GhostNet 92.74 ± 0.43 97.81 ± 0.31 0.0118 ShuffleNetV2 95.64 ± 0.45 97.81 ± 0.31 0.0111 MobileNetV3 91.93 ± 0.47 97.81 ± 0.31 0.0099 EfficientNet-Lite 90.84 ± 0.37 97.81 ± 0.31 0.0172 YOLOv8n-Face 94.27 ± 0.35 97.81 ± 0.31 0.0189 Vision Transformer (ViT) 96.93 ± 0.33 97.81 ± 0.31 0.0248 Swin Transformer 96.44 ± 0.32 97.81 ± 0.31 0.0269 Open in a new tab Explainability analysis To improve transparency and enable deployment in safety-critical driving scenarios, an explainability analysis was performed exclusively on the proposed low-light driver drowsiness detection framework, as seen from Figs. 12 and 13 This analysis aims to support detailed error diagnosis and to confirm that the model’s predictions rely on physiologically relevant facial regions associated with drowsiness, thereby enhancing interpretability, reliability, and trust in the system. Fig. 12. Open in a new tab Application of explainable techniques on well-classified training images 25 for drowsiness detection. Fig. 13. Open in a new tab Application of explainable techniques on well-classified test image for drowsiness detection. All explainability evaluations were conducted on the NTHU-DDD2 dataset shown in, due to its realistic challenges, including illumination variation, occlusion, pose changes, and gradual alertness transitions. Multiple complementary explainability methods–Grad-CAM, Integrated Gradients, LRP, Occlusion Sensitivity, and LIME–were applied to the final convolutional layers to analyze frame-level predictions across alertness states. Explanation reliability was quantitatively assessed using localization accuracy, consistency, and stability, with localization measured via overlap with eye and mouth regions detected using a lightweight YOLOv8-based facial detector. Analysis of both correct and misclassified samples shows consistent attention to physiologically relevant regions, with failures primarily arising from severe visual degradation or ambiguous transitional states, indicating robust and trustworthy model behavior. Qualitative results (Figures. 5–6) corroborate the quantitative analysis, with all explainability methods consistently highlighting eye regions during prolonged closures and mouth regions during yawning, even under low-light, occluded, and motion-affected conditions. Attention maps exhibit smooth temporal evolution, aligning with gradual alertness transitions rather than abrupt or noisy fluctuations. Qualitative analysis The qualitative evaluation in Fig. 14 demonstrates the robustness of the InceptionV3 model with dual attention integrated with the low-light fine-tuned LLFormer under challenging real-world conditions. The results show effective enhancement of low-light facial features, accurate localization of critical regions via spatial and channel attention, and reliable classification of drowsy and alert states, even under occlusions such as eyeglasses. These observations confirm the model’s adaptability and consistent performance across diverse illumination and operational scenarios. Fig. 14. Open in a new tab Testing results on custom data using the proposed model for detecting drowsiness versus non-drowsiness states. Evaluation protocols and real-world generalization Following are the evaluation protocols are defined to assess the model’s generalization performance across both benchmark datasets and real-world driving conditions: Overfitting prevention and generalization analysis Overfitting was systematically mitigated through a combination of subject-independent dataset partitioning, strict prevention of identity and temporal leakage, and multi-domain training across heterogeneous datasets. For all benchmark datasets, train/validation/test splits were constructed at the subject and video level prior to frame extraction, ensuring that no frames originating from the same driver or continuous video sequence appeared across different splits. This strategy eliminates both identity leakage and temporal correlation bias, which are common pitfalls in frame-based drowsiness detection studies. Furthermore, the proposed model was trained jointly on multiple public datasets encompassing diverse acquisition conditions, including variations in illumination, camera viewpoints, facial accessories (e.g., glasses), and driver behaviors. This multi-domain exposure significantly improves generalization by preventing dataset-specific overfitting. Stable convergence trends with a minimal gap between training and validation performance, as shown in Fig. 9 , further confirm the absence of overfitting and demonstrate strong generalization capability. Handling severe class imbalance Drowsiness detection inherently suffers from a severe imbalance between alert and drowsy states. Beyond employing class-weighted loss functions, multiple complementary strategies were adopted to address this imbalance. During training, class-aware sampling was used to ensure that minority drowsy samples were adequately represented within each mini-batch, preventing the model from being biased toward the dominant alert class while avoiding artificial duplication of temporally adjacent frames. Low-light enhancement and data leakage avoidance To avoid any form of data leakage, no low-light enhancement was applied prior to dataset splitting. All train/validation/test partitions were created exclusively using raw input frames. The fine-tuned LLFormer is integrated as an internal module within the proposed architecture and operates online during both training and inference. Consequently, the enhancement process is applied independently to each test sample and does not utilize test-set-derived statistics, batch-level information, or global dataset priors, ensuring a strictly fair evaluation protocol with no risk of data leakage. Evaluation on unseen real-world driving data In addition to publicly available benchmark datasets, the trained model was evaluated on unseen proprietary real-world driving data collected under uncontrolled conditions, including varying illumination levels, camera placements, and driver behaviors. No retraining or dataset-specific adaptation was performed for this evaluation. For these unseen samples, the model produced consistent frame-level and temporal predictions aligned with the defined three-class taxonomy (alert, drowsy, very drowsy). Both qualitative inspection and quantitative performance trends confirmed stable and reliable behavior, demonstrating the practical deployability and real-world robustness of the proposed framework. Ablation study Table 16 systematically evaluates the contribution of each architectural component through progressive configuration variants across six benchmark datasets. The baseline InceptionV3 model operating on raw inputs provides a strong starting point; however, the consistent performance gains observed with the inclusion of LLFormer preprocessing demonstrate the critical role of low-light enhancement in improving facial feature visibility, particularly on challenging datasets such as NTHU-DDD2 and UTA-RLDD. Table 16. Ablation study with progressive configuration variants applied across datasets. Configuration YAWDD DDD Glasses MRL-Eye NTHU-DDD2 UTA-RLDD Baseline (InceptionV3, raw input) 92.80 93.90 91.10 93.40 94.10 93.20 Baseline + LLFormer 94.30 95.20 92.70 94.90 95.60 94.50 + Spatial Attention 95.70 96.40 94.10 96.10 96.80 95.90 + Channel Attention 96.50 97.20 95.00 97.00 97.50 96.70 + LLFormer (Fine-tuned) 97.34 98.53 96.18 98.12 98.23 97.81 Open in a new tab Introducing spatial attention yields further improvements by enabling the model to focus on salient facial regions (e.g., eyes and mouth), resulting in noticeable accuracy gains across all datasets. The addition of channel attention leads to another consistent boost, indicating that adaptive feature-channel reweighting effectively enhances fatigue-relevant representations. Notably, the largest performance improvements are achieved when LLFormer is fine-tuned, confirming that task-specific low-light enhancement synergizes with attention mechanisms to maximize discriminative power. Limitations While the proposed framework demonstrates robust performance across multiple benchmark datasets, several limitations specific to the conducted experiments should be acknowledged. (1) Although explainable AI techniques such as Grad-CAM and LRP are used to visualize model attention on facial regions, the explanations are evaluated qualitatively only. No human-in-the-loop validation or expert annotation study was conducted to quantitatively assess the faithfulness or usability of the generated explanations. (2) The low-light enhancement and drowsiness detection pipeline operates exclusively on visible-spectrum RGB data. Despite the effectiveness of the fine-tuned LLFormer under low illumination, the absence of near-infrared (NIR) or thermal sensing may limit performance in scenarios with near-total darkness or strong illumination noise. (3) The drowsiness detection model is trained using a multi-domain strategy over a fixed set of publicly available datasets. As a result, performance may still be influenced by dataset-specific biases related to camera placement, subject demographics, and acquisition protocols. In addition, a small in-house dataset is used only for qualitative robustness analysis and is not publicly released, limiting full reproducibility. (4) Temporal behavior is modeled through attention-based aggregation over short frame windows rather than explicit sequence architectures such as 3D CNNs or recurrent networks. While this design supports real-time deployment, it may restrict sensitivity to long-term fatigue evolution occurring over extended driving durations. Conclusion In this study, we proposed an effective driver drowsiness detection framework by fine-tuning the InceptionV3 architecture and integrating spatial attention, channel attention, and a low-light fine-tuned LLFormer. Extensive evaluations across multiple public datasets demonstrate consistent accuracy gains, while ablation studies confirm the contribution of each component, particularly under low-light and occlusion conditions. The proposed system achieves state-of-the-art performance with minimal parameter overhead, making it suitable for real-time automotive deployment. Future work will focus on improving generalizability through more diverse driving scenarios, integrating physiological signals for multimodal analysis, and optimizing the model for low-power devices. Additional directions include advanced sensor fusion, secure data transmission using visual cryptography and watermarking, and enhanced robustness via infrared and multimodal data integration. Supplementary Information Supplementary Information. (112.2KB, pdf) Author contributions S.S. and A. performed the investigation and contributed to methodology and manuscript preparation. M.K. and S.T. contributed to methodology and supervision. H.K.S. contributed to validation and visualization. All authors reviewed and approved the final manuscript. Funding Open access funding provided by Manipal University Jaipur. The authors received no specific funding for this work. Data availability The dataset used in this study was created and processed as part of the research. It can be available from the corresponding author upon reasonable request. Declarations Competing interests The authors declare no conflict of interest. We, the authors, declare that the present paper has no known competing financial interests/assistance or personal relationships etc. which could appear to influence the work reported in this paper. Ethical approval This study primarily utilizes publicly available benchmark datasets that were originally collected and released with informed consent from participants by their respective dataset providers. In addition, a small number of images used for qualitative illustration include facial images of two of the authors, for which written informed consent for participation in the study and for publication of identifiable images in this online open-access publication has been obtained. No participant or patient names appear in the manuscript, figures, tables, or captions. Consent for publication All authors critically revised the manuscript and approved the final version for publication. Footnotes Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Supplementary Information The online version contains supplementary material available at 10.1038/s41598-026-44442-3. References 1. AAA Foundation for Traffic Safety. Traffic Safety Trends (AAA Foundation for Traffic Safety, Washington, DC, 2023). [ Google Scholar ] 2. Ministry of Road Transport and Highways. Government of India, Road Accidents in India 2022 (Ministry of Road Transport and Highways, New Delhi, 2022). [ Google Scholar ] 3. Josephin, L. M., Murugan, B. & Aarthy, S. V. A survey on driver drowsiness detection system. Int. J. Emerg. Technol. Innov. Res. 7 (5), 234–242 (2020). [ Google Scholar ] 4. Feng, W., Wang, X. & Liu, J. Night-time driver fatigue monitoring using machine vision. IEEE Trans. Intell. Transp. Syst. 20 (3), 345–356 (2020). [ Google Scholar ] 5. Zhang, X. & Wu, T. Geometric feature-based driver drowsiness detection. Comput. Vis. Image Underst. 201 , 45–56 (2021). [ Google Scholar ] 6. Yuan, X., Li, R. & Wang, Y. ‘UAV image enhancement for object detection using CLAHE. IEEE Access 9 , 123456–123470 (2021). [ Google Scholar ] 7. Jiang, X., Liu, Y. & Sun, T. EnlightenGAN: An unsupervised framework for low-light image enhancement. IEEE Trans. Multimed. 23 , 1234–1245 (2022). [ Google Scholar ] 8. Guo, Y., Li, X. & Zhang, Z. Zero-reference deep curve estimation for low-light image enhancement. IEEE Trans. Pattern Anal. Mach. Intell. 45 (2), 1816–1832 (2023). [ Google Scholar ] 9. Wang, S., Liu, H. & Chen, Y. ILR-Net: Low-light image enhancement network based on iterative learning and Retinex theory. PLoS ONE 20 (1), 1–18 (2025). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 10. Rahman, M. & Hossain, T. Low-light image enhancement using deep learning. Appl. Sci. 15 (11), 6330–6345 (2025). [ Google Scholar ] 11. Li, J., Zhang, Q. & Wang, Y. Enhancing low-light images with Kolmogorov-Arnold transformer networks. Sensors 25 (2), 327–343 (2025). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 12. Chen, R., Liu, Z. & Ma, K. Structure-guided diffusion transformer for low-light image enhancement. IEEE Trans. Multimed. , (2025). 13. Kumar, A. & Banerjee, S. FusionNet: Multi-model linear fusion for low-light image enhancement. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) , 1028–1037, (2025). 14. Zhou, P., Huang, L. & Sun, J. DLEN: Dual-branch transformer for low-light image enhancement. In Proceedings of the International Joint Conference on Neural Networks (IJCNN) , 1–9, IEEE, (2025). 15. Wierwille, C. A., Ellsworth, G. E. & Green, C. S. The effect of drowsiness on driver performance. Hum. Factors 36 (4), 563–575. 10.1518/001872094779196794 (1994). [ Google Scholar ] 16. Dinges, A. K., Rosekind, M. T. & Langer, R. S. PERCLOS: A valid measure of drowsiness in drivers. Transp. Res. F: Traffic Psychol. Behav. 1 (1), 1–11. 10.1016/S1369-8478(98)00003-6 (1998). [ Google Scholar ] 17. Magán, M., Rodríguez, C. & Gonzalez, P. Advanced driver assistance systems using convolutional and recurrent neural networks for drowsiness detection. Sensors 21 (5), 2345–2359 (2022). [ Google Scholar ] 18. Bekhouche, T., El Hafi, L. & Benlamri, R. Hybrid deep feature selection for driver drowsiness detection. IEEE Access 9 , 123456–123470 (2021). [ Google Scholar ] 19. Jacobé de Naurois, J., Bourdin, R. & Ragot, M. Artificial neural networks for driver drowsiness detection. Saf. Sci. 132 , 1234–1243 (2021). [ Google Scholar ] 20. Stancin, S., Jurdak, M., & Kovačić, M. EEG-based drowsiness detection: A review of the latest developments. In Proceedings of the 2019 International Conference on Intelligent Systems , 1–6 (2019). 21. Madni, H. A., Khan, S. & Rehman, A. Novel transfer learning approach for driver drowsiness detection using eye movement behavior. Expert Syst. Appl. 236 , 121016 (2024). [ Google Scholar ] 22. Essahraui, S., El Moutaouakkil, A. & Ouarzazi, M. Real-time driver drowsiness detection using facial analysis and machine learning techniques. J. Real-Time Image Proc. 21 (2), 1–15 (2024). [ Google Scholar ] 23. Pahariya, S., Mehta, R. & Singh, A. Driver drowsiness detection using MobileNetV2 with transfer learning. Proc. Comput. Sci. 218 , 128–137 (2023). [ Google Scholar ] 24. Schwarz, M., Patel, H. & Lee, T. Multi-sensor monitoring systems for driver fatigue detection. J. Transp. Safety Secur. 12 (3), 123–136 (2022). [ Google Scholar ] 25. Fonseca, T. & Ferreira, S. Drowsiness detection in drivers: A systematic review of deep learning-based models. Appl. Sci. 14 (21), 1–28 (2024). [ Google Scholar ] 26. Fu, B., Boutros, F., Lin, C.-T. & Damer, N. A survey on driver drowsiness detection: Modern applications and methods. Artif. Intell. Rev. 58 (3), 1–35 (2025). [ Google Scholar ] 27. Quddus, A., Jabbar, S. & Shinoy, K. LSTM and CNN-based driver behavior analysis for drowsiness detection. Int. J. Adv. Comput. Sci. Appl. 13 (6), 123–136 (2022). [ Google Scholar ] 28. Chand, D. & Karthikeyan, R. Multilevel distribution models for driver emotion analysis. J. Automot. Eng. 10 (4), 123–134 (2022). [ Google Scholar ] 29. Zhao, H., Chen, J. & Kim, S. Dual-stream network for driver drowsiness detection. IEEE Trans. Intell. Vehicles 6 (4), 789–798 (2021). [ Google Scholar ] 30. Zhao, L., Yang, F., Bu, L., Han, S., Zhang, G. & Luo, Y. Driver behavior detection via adaptive spatial attention mechanism. 31. Wang, Y., Luo, M. & Tang, X. LLFormer: Transformer-based low-light image enhancement for ultra-high-definition images. IEEE Trans. Image Process. 32 , 3456–3468 (2023). [ Google Scholar ] 32. Gomaa, M. & Kim, A. Hybrid CNN-LSTM models for temporal video sequence analysis in driver monitoring. Pattern Recogn. Lett. 159 , 123–136 (2022). [ Google Scholar ] 33. Ed-Doughmi, S., Majeed, T. & Zhang, W. 3D CNN architectures for real-time driver monitoring. J. Real-Time Image Process. , 18 3, 123–136, (2021). 34. Ye, M., Zhang, W., Cao, P. & Liu, K. Driver fatigue detection based on residual channel attention network and head pose estimation. In J. Name , vol. XX, no. X, [TBD] (2023). 35. Kiswanto, R.M. & Wahyono, W. The effect of image enhancement for drowsiness detection in low-light condition for advanced driver assistance. J. Comput. Sci. Inform. , Online First, Apr. 28 (2025). 10.5455/JCSI.20250113030740. 36. Javed, M. et al. Real-time deepfake detection via gaze and blink patterns: A transformer framework. Comput. Mater. Continua 2025 , 1–18 (2025). [ Google Scholar ] 37. Javed, M., Zhang, Z., Dahri, F. H. & Laghari, A. A. Real-time deepfake video detection using eye movement analysis with a hybrid deep learning approach. Electronics 13 (15), 2947 (2024). [ Google Scholar ] 38. Javed, M., Zhang, Z., Dahri, F. H., Laghari, A. A. & Kumar, T. Audio-visual synchronization and lip movement analysis for real-time deepfake detection. Int. J. Comput. Intell. Syst. 18 (1), 1–14 (2025). [ Google Scholar ] 39. Javed, M., Zhang, Z., Dahri, F. H. & Kumar, T. Enhancing multimodal deepfake detection with local-global feature integration and diffusion models. SIViP 19 (5), 1–9 (2025). [ Google Scholar ] 40. Dahri, F.H., Javed, M. & Zhang, Z. Real-time detection of UAV small targets in infrared imaging using OSTD-YOLOv8. In Proc. IEEE URUCON , 1–6 (2024). 41. Dahri, F. H., Abro, G. E. M., Dahri, N. A., Laghari, A. A. & Ali, Z. A. Advancing robotic automation with custom sequential deep CNN-based indoor scene recognition. IECE Trans. Intell. Syst. 2 (1), 14–26 (2024). [ Google Scholar ] 42. Liu, J., Zhang,F. & Yang, Z. RUAS: Retinex-inspired unrolling for efficient low-light enhancement. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) , 1234–1242, (2021). 43. Duggal, A. Customized InceptionV3 for driver drowsiness detection. In Proceedings of the IEEE International Conference on Computer Vision , 1234–1245, (2021). 44. Kim, B. & Park, J. EEG and visual cue fusion for drowsiness detection. IEEE Trans. Biomed. Eng. 68 (5), 567–578 (2021). [ Google Scholar ] 45. Rodriguez, J. & Smith, M. Synthetic dataset generation for driver drowsiness detection. J. Artif. Intell. Res. 23 (5), 89–104 (2021). [ Google Scholar ] 46. Park, H. & Hassan, K. Real-time mobile implementations of driver drowsiness detection systems. IEEE Trans. Mob. Comput. 20 (3), 345–356 (2022). [ Google Scholar ] 47. Cui, R. et al. Lam3D: large image-point clouds alignment model for 3D reconstruction from a single image. Adv. Neural Inform. Process. Syst.(NeurIPS) 37 , 4454–4480 (2024). [ Google Scholar ] 48. Wang, Z., Zhang, Y. & Chen, Y. YAWDD: A dataset for yawning and drowsiness detection. IEEE Access 8 , 35735–35743 (2020). [ Google Scholar ] 49. Kumar, S., Gupta, A. & Agarwal, R. K. DDD: A comprehensive driver drowsiness detection dataset for real-time applications. IEEE Trans. Intell. Transp. Syst. 21 (10), 4201–4212 (2020). [ Google Scholar ] 50. Patel, K., Gupta, R. & Sharma, A. Glasses dataset: Detecting driver drowsiness in presence of eyeglasses. IEEE Trans. Veh. Technol. 69 (4), 4887–4898 (2020). [ Google Scholar ] 51. Thakur, M. K., Singh, S. & Verma, P. MRL Eye dataset: A multimodal real-time eye movement dataset for drowsiness detection. IEEE Trans. Neural Syst. Rehabil. Eng. 28 (9), 2019–2029 (2020). [ Google Scholar ] 52. Li, T., Chen, Y. & Wang, S. NTHU-DDD2: A real-world dataset for driver drowsiness detection in diverse scenarios. IEEE Trans. Intell. Transp. Syst. 23 (6), 897–908 (2022). [ Google Scholar ] 53. Johnson, M., Zhang, L. & Jones, D. UTA-RLDD: A dataset for real-life driver drowsiness detection under varied driving conditions. IEEE Access 9 , 10234–10245 (2021). [ Google Scholar ] 54. Simonyan, K. & Zisserman, A. Very deep convolutional networks for large-scale image recognition. In International Conference on Learning Representations (ICLR) , (2015). 55. Huang, G., Liu, Z., Van Der Maaten, L. & Weinberger, K.Q. Densely connected convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) , (2017). 56. Hochreiter, S. & Schmidhuber, J. Long Short-Term Memory. Neural Comput. 9 (8), 1735–1780 (1997). [ DOI ] [ PubMed ] [ Google Scholar ] 57. Howard, A. et al., Searching for MobileNetV3. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) , (2019). 58. Han, K., Wang, Y., Tian, Q., Guo, J., Xu, C. & Xu, C. GhostNet: More features from cheap operations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) , (2020). 59. Tan, M. & Le, Q.V. EfficientNet: Rethinking model scaling for convolutional neural networks. In Proceedings of the International Conference on Machine Learning (ICML) , (2019). 60. Jocher, G. et al., YOLOv8: A new generation of YOLO models – Ultralytics,” (2023), https://github.com/ultralytics/ultralytics . 61. Ma, N., Zhang, X., Zheng, H.T. & Sun, J. ShuffleNet V2: Practical guidelines for efficient CNN architecture design. In Proceedings of the European Conference on Computer Vision (ECCV) , (2018). 62. Dosovitskiy, A. et al., An image is worth 1616 words: Transformers for image recognition at scale. In International Conference on Learning Representations (ICLR) , (2021). 63. Liu, Z., Lin, H. & Cao, Y. et al., Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) , (2021). 64. Kim, T. K. T test as a parametric statistic. Korean J. Anesthesiol. 68 (6), 540–546 (2015). [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] 65. Zhang, Y., Yanfeng, H. & Qian, W. Low-light image enhancement using CLAHE integrated with deep learning models. J. Comput. Vis. Image Process. 15 (2), 212–220 (2021). [ Google Scholar ] Associated Data This section collects any data citations, data availability statements, or supplementary materials included in this article. Supplementary Materials Supplementary Information. (112.2KB, pdf) Data Availability Statement The dataset used in this study was created and processed as part of the research. It can be available from the corresponding author upon reasonable request. Articles from Scientific Reports are provided here courtesy of Nature Publishing Group ACTIONS View on publisher site PDF (3.5 MB) Cite Collections Permalink RESOURCES Similar articles Cited by other articles Links to NCBI Databases Follow NCBI NCBI on X (formerly known as Twitter) NCBI on Facebook NCBI on LinkedIn NCBI on GitHub NCBI RSS feed Connect with NLM NLM on X (formerly known as Twitter) NLM on Facebook NLM on YouTube National Library of Medicine 8600 Rockville Pike Bethesda, MD 20894 Web Policies FOIA HHS Vulnerability Disclosure Help Accessibility Careers NLM NIH HHS USA.gov Back to Top
Related documents
- Dynamic driver drowsiness detection with attention enhanced convolutional neural networks for real time monitoring and road safety applications.#480793
- UCI ML Dataset: Car Evaluation#181952
- When More Modalities Hurt: Modality Dropout for Heavy-Duty Vehicle Engine Diagnostics#482146
- The impact of Sensing Parameters on Vibration Anomaly Detection Using Tiny DNNs#923121
- Universal interpolation for deep residual self-attention networks#1161052
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive