Driver Drowsiness Detection Using Multi-Frames Approach with Vision Transformer Models

Driver drowsiness is a major contributor to road accidents, necessitating the development of effective real-time monitoring systems to enhance road safety. This study presents a multi-frame approach for driver drowsiness detection, improving upon conventional single-frame detection by capturing temporal dependencies in risky driving behaviors such as drowsiness, nodding, and yawning. The proposed Vision Transformer models proposed in this work are ViT B16 and Swin V2S, where the multiframe approaches on these models are implemented. A dataset collected from 44 individuals expressing normal, yawning and nodding behaviors is utilized, with augmentation techniques applied to enhance class balance during training. Experimental results demonstrate that a 5 -frame approach with the Swin V2S model achieves the best detection performance, with a training accuracy of 97.05 % and a test accuracy of 97.07 %. The optimized model is then deployed on both PC and Raspberry Pi 5, the latter being a cost-effective and portable solution with inherent computational constraints. Benchmarking results indicate that Raspberry Pi 5 achieves an inference time of <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$0.6075 \mathbf{sec} /$</tex> frame for single-frame processing and <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$0.5734 \mathbf{sec} /$</tex> frame for 5-frame processing using Swin V2S model, significantly slower than a PCbased implementation which achieves <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$0.0059 \mathbf{sec} /$</tex> frame inference for all tested processing methods using ViT B16. These findings highlight the feasibility of deploying ViT-based drowsiness detection on low-power edge devices, while emphasizing the tradeoffs between portability and inference speed.

Authors

Institutions

Publication Details

Published
2025-05-24
DOI
https://doi.org/10.1109/iscaie64985.2025.11080930
Citations
1
Primary Topic
Sleep and Work-Related Fatigue
Type
article
Field-Weighted Citation Impact
2.12

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Driver Drowsiness Detection Using Multi-Frames Approach with Vision Transformer Models

Nurnadiah Zamri, Fadhlan Hafizhelmi Bin Kamaru Zaman
1 citations
Sleep and Work-Related Fatigue
2.12
article

Driver Drowsiness Detection Using Multi-Frames Approach with Vision Transformer Models

Nurnadiah Zamri, Fadhlan Hafizhelmi Bin Kamaru Zaman
article en
1 citations

Abstract

Driver drowsiness is a major contributor to road accidents, necessitating the development of effective real-time monitoring systems to enhance road safety. This study presents a multi-frame approach for driver drowsiness detection, improving upon conventional single-frame detection by capturing temporal dependencies in risky driving behaviors such as drowsiness, nodding, and yawning. The proposed Vision Transformer models proposed in this work are ViT B16 and Swin V2S, where the multiframe approaches on these models are implemented. A dataset collected from 44 individuals expressing normal, yawning and nodding behaviors is utilized, with augmentation techniques applied to enhance class balance during training. Experimental results demonstrate that a 5 -frame approach with the Swin V2S model achieves the best detection performance, with a training accuracy of 97.05 % and a test accuracy of 97.07 %. The optimized model is then deployed on both PC and Raspberry Pi 5, the latter being a cost-effective and portable solution with inherent computational constraints. Benchmarking results indicate that Raspberry Pi 5 achieves an inference time of <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$0.6075 \mathbf{sec} /$</tex> frame for single-frame processing and <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$0.5734 \mathbf{sec} /$</tex> frame for 5-frame processing using Swin V2S model, significantly slower than a PCbased implementation which achieves <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$0.0059 \mathbf{sec} /$</tex> frame inference for all tested processing methods using ViT B16. These findings highlight the feasibility of deploying ViT-based drowsiness detection on low-power edge devices, while emphasizing the tradeoffs between portability and inference speed.

Universiti Teknologi MARA System (MY), Universiti Teknologi MARA (MY)
Universiti Teknologi MARA
Climate action
Openalex Percentile: Top 12%
Sleep and Work-Related Fatigue
2.12
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Driver Drowsiness Detection Using Multi-Frames Approach with Vision Transformer Models — Nurnadiah Zamri, Fadhlan Hafizhelmi Bin Kamaru Zaman · (2025) | TGRS Research Map | TGRS