Cargando…

DDD TinyML: A TinyML-Based Driver Drowsiness Detection Model Using Deep Learning

Driver drowsiness is one of the main causes of traffic accidents today. In recent years, driver drowsiness detection has suffered from issues integrating deep learning (DL) with Internet-of-things (IoT) devices due to the limited resources of IoT devices, which pose a challenge to fulfilling DL mode...

Descripción completa

Detalles Bibliográficos
Autores principales: Alajlan, Norah N., Ibrahim, Dina M.
Formato: Online Artículo Texto
Lenguaje:English
Publicado: MDPI 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10305041/
https://www.ncbi.nlm.nih.gov/pubmed/37420860
http://dx.doi.org/10.3390/s23125696
_version_ 1785065640803958784
author Alajlan, Norah N.
Ibrahim, Dina M.
author_facet Alajlan, Norah N.
Ibrahim, Dina M.
author_sort Alajlan, Norah N.
collection PubMed
description Driver drowsiness is one of the main causes of traffic accidents today. In recent years, driver drowsiness detection has suffered from issues integrating deep learning (DL) with Internet-of-things (IoT) devices due to the limited resources of IoT devices, which pose a challenge to fulfilling DL models that demand large storage and computation. Thus, there are challenges to meeting the requirements of real-time driver drowsiness detection applications that need short latency and lightweight computation. To this end, we applied Tiny Machine Learning (TinyML) to a driver drowsiness detection case study. In this paper, we first present an overview of TinyML. After conducting some preliminary experiments, we proposed five lightweight DL models that can be deployed on a microcontroller. We applied three DL models: SqueezeNet, AlexNet, and CNN. In addition, we adopted two pretrained models (MobileNet-V2 and MobileNet-V3) to find the best model in terms of size and accuracy results. After that, we applied the optimization methods to DL models using quantization. Three quantization methods were applied: quantization-aware training (QAT), full-integer quantization (FIQ), and dynamic range quantization (DRQ). The obtained results in terms of the model size show that the CNN model achieved the smallest size of 0.05 MB using the DRQ method, followed by SqueezeNet, AlexNet MobileNet-V3, and MobileNet-V2, with 0.141 MB, 0.58 MB, 1.16 MB, and 1.55 MB, respectively. The result after applying the optimization method was 0.9964 accuracy using DRQ in the MobileNet-V2 model, which outperformed the other models, followed by the SqueezeNet and AlexNet models, with 0.9951 and 0.9924 accuracies, respectively, using DRQ.
format Online
Article
Text
id pubmed-10305041
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher MDPI
record_format MEDLINE/PubMed
spelling pubmed-103050412023-06-29 DDD TinyML: A TinyML-Based Driver Drowsiness Detection Model Using Deep Learning Alajlan, Norah N. Ibrahim, Dina M. Sensors (Basel) Article Driver drowsiness is one of the main causes of traffic accidents today. In recent years, driver drowsiness detection has suffered from issues integrating deep learning (DL) with Internet-of-things (IoT) devices due to the limited resources of IoT devices, which pose a challenge to fulfilling DL models that demand large storage and computation. Thus, there are challenges to meeting the requirements of real-time driver drowsiness detection applications that need short latency and lightweight computation. To this end, we applied Tiny Machine Learning (TinyML) to a driver drowsiness detection case study. In this paper, we first present an overview of TinyML. After conducting some preliminary experiments, we proposed five lightweight DL models that can be deployed on a microcontroller. We applied three DL models: SqueezeNet, AlexNet, and CNN. In addition, we adopted two pretrained models (MobileNet-V2 and MobileNet-V3) to find the best model in terms of size and accuracy results. After that, we applied the optimization methods to DL models using quantization. Three quantization methods were applied: quantization-aware training (QAT), full-integer quantization (FIQ), and dynamic range quantization (DRQ). The obtained results in terms of the model size show that the CNN model achieved the smallest size of 0.05 MB using the DRQ method, followed by SqueezeNet, AlexNet MobileNet-V3, and MobileNet-V2, with 0.141 MB, 0.58 MB, 1.16 MB, and 1.55 MB, respectively. The result after applying the optimization method was 0.9964 accuracy using DRQ in the MobileNet-V2 model, which outperformed the other models, followed by the SqueezeNet and AlexNet models, with 0.9951 and 0.9924 accuracies, respectively, using DRQ. MDPI 2023-06-18 /pmc/articles/PMC10305041/ /pubmed/37420860 http://dx.doi.org/10.3390/s23125696 Text en © 2023 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
spellingShingle Article
Alajlan, Norah N.
Ibrahim, Dina M.
DDD TinyML: A TinyML-Based Driver Drowsiness Detection Model Using Deep Learning
title DDD TinyML: A TinyML-Based Driver Drowsiness Detection Model Using Deep Learning
title_full DDD TinyML: A TinyML-Based Driver Drowsiness Detection Model Using Deep Learning
title_fullStr DDD TinyML: A TinyML-Based Driver Drowsiness Detection Model Using Deep Learning
title_full_unstemmed DDD TinyML: A TinyML-Based Driver Drowsiness Detection Model Using Deep Learning
title_short DDD TinyML: A TinyML-Based Driver Drowsiness Detection Model Using Deep Learning
title_sort ddd tinyml: a tinyml-based driver drowsiness detection model using deep learning
topic Article
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10305041/
https://www.ncbi.nlm.nih.gov/pubmed/37420860
http://dx.doi.org/10.3390/s23125696
work_keys_str_mv AT alajlannorahn dddtinymlatinymlbaseddriverdrowsinessdetectionmodelusingdeeplearning
AT ibrahimdinam dddtinymlatinymlbaseddriverdrowsinessdetectionmodelusingdeeplearning