%0 Journal Article %T Intelligent In-Vehicle Safety System Based on Yolov5 %A Biyun Chen %A Wei Cai %A Jinwen Zhu %J Journal of Computer and Communications %P 207-218 %@ 2327-5227 %D 2024 %I Scientific Research Publishing %R 10.4236/jcc.2024.123013 %X In order to reduce the occurrence of traffic accidents and assist drivers to avoid dangerous driving. This paper presents a smart in-vehicle safety system that utilises the Yolov5 algorithm. Yolov5 algorithm is used to anticipate driver fatigue and distraction behaviours, and remind drivers to pay attention to safe driving in time. The system continuously splits the frames and analyses the frame content through the video feedback from the front camera, compared to the traditional machine learning, Yolov5¡¯s mosaic data is enhanced, resulting in a batch size enhancement of 92.3%, and it also uses the Drop Block mechanism to prevent overfitting. The hardware of this system uses STM32 microcontroller and uses system DMA interrupt control and buzzer alarm device to warn about dangerous driving behaviour. %K Behaviour Detection %K STM32 %K Pyside2 %K Yolov5 %K Dlib Open Source Library %K Perclos Model %U http://www.scirp.org/journal/PaperInformation.aspx?PaperID=132122