P-YOLOv8: Efficient and Accurate Real-Time Detection of Distracted Driving

Mohamed R. Elshamy,Heba M. Emara,Mohamed R. Shoaib,Abdel-Hameed A. Badawy
2024-10-21
Abstract:Distracted driving is a critical safety issue that leads to numerous fatalities and injuries worldwide. This study addresses the urgent need for efficient and real-time machine learning models to detect distracted driving behaviors. Leveraging the Pretrained YOLOv8 (P-YOLOv8) model, a real-time object detection system is introduced, optimized for both speed and accuracy. This approach addresses the computational constraints and latency limitations commonly associated with conventional detection models. The study demonstrates P-YOLOv8 versatility in both object detection and image classification tasks using the Distracted Driver Detection dataset from State Farm, which includes 22,424 images across ten behavior categories. Our research explores the application of P-YOLOv8 for image classification, evaluating its performance compared to deep learning models such as VGG16, VGG19, and ResNet. Some traditional models often struggle with low accuracy, while others achieve high accuracy but come with high computational costs and slow detection speeds, making them unsuitable for real-time applications. P-YOLOv8 addresses these issues by achieving competitive accuracy with significant computational cost and efficiency advantages. In particular, P-YOLOv8 generates a lightweight model with a size of only 2.84 MB and a lower number of parameters, totaling 1,451,098, due to its innovative architecture. It achieves a high accuracy of 99.46 percent with this small model size, opening new directions for deployment on inexpensive and small embedded devices using Tiny Machine Learning (TinyML). The experimental results show robust performance, making P-YOLOv8 a cost-effective solution for real-time deployment. This study provides a detailed analysis of P-YOLOv8's architecture, training, and performance benchmarks, highlighting its potential for real-time use in detecting distracted driving.
Artificial Intelligence,Computer Vision and Pattern Recognition
What problem does this paper attempt to address?
The problem that this paper attempts to solve is the serious road safety issue of distracted driving. Specifically, the authors aim to develop an efficient and real - time machine - learning model to detect drivers' distracted behaviors during driving. ### Problem Background Distracted driving is a global safety issue, causing a large number of deaths and injuries every year. According to the data of the Centers for Disease Control and Prevention (CDC) in the United States, in 2019, approximately 3,142 deaths and 424,000 injuries were caused by distracted driving in the United States. This not only affects the drivers themselves but also poses a threat to pedestrians and cyclists. Therefore, there is an urgent need for effective technological means to automatically identify and detect drivers' distracted behaviors to improve road safety. ### Limitations of Existing Methods Although many existing deep - learning models can achieve high - precision distracted - driving detection, they generally have the following problems: - **High computational cost**: Many traditional models have a large number of parameters, resulting in excessive consumption of computational resources. - **Slow detection speed**: Some models, although having high accuracy, have a slow detection speed in practical applications and are difficult to meet the real - time requirements. - **Difficult to deploy**: Due to the high complexity of the model and a large number of parameters, it is difficult to deploy on resource - limited devices. ### Proposed Solution To solve the above problems, this research introduced a new model named P - YOLOv8. P - YOLOv8 is a pre - trained version of YOLOv8, which can significantly reduce the computational cost and model size while maintaining high precision after optimization. Its main features include: - **Lightweight model**: The P - YOLOv8 model contains only 1,451,098 parameters, and the model size is only 2.84 MB. - **High precision**: In the classification task on the State Farm distracted - driving detection data set, P - YOLOv8 achieved a high precision of 99.46%. - **Real - time performance**: By optimizing the architecture and inference process, P - YOLOv8 can achieve real - time detection in resource - limited environments such as embedded devices. ### Application Prospects The successful development of P - YOLOv8 provides a new direction for distracted - driving detection, especially in the field of Tiny Machine Learning (TinyML), enabling low - cost and miniaturized devices to also have efficient distracted - driving detection capabilities. This is of great significance for improving road safety and reducing traffic accidents. In conclusion, the main goal of this paper is to solve the problems of high computational cost and slow detection speed in existing distracted - driving detection methods by developing the P - YOLOv8 model, thereby providing an efficient, real - time and easy - to - deploy solution.