Introduction: Two major factors leading to traffic accidents are driver fatigue and distraction. The World Health Organization (WHO) reports that 7% of fatal and severe traffic accidents are caused by sleepy driving. Advances in machine learning, artificial intelligence, and neural networks have paved new avenues for real-time sleepiness detection, providing practical ways that mitigate the number of mishaps Objectives: The primary objective of this research is : to develop a new, real-time system for detecting driver drowsiness. The technology evaluates facial expressions and detects indicators of exhaustion using deep learning algorithms, which eventually improves road safety by reducing drowsiness-related accidents. Methods: The proposed strategy uses facial cues, such as the eyes, lips, head, and pupil, to detect driver fatigue. The MediaPipe method, which is renowned for its great accuracy and resilience, is used to extract these properties. The InceptionV3, VGG19, and ResNet50V2 deep learning neural networks were assessed using a dataset captured in real time at NTHU. The drivers in the dataset show varying degrees of tiredness under different settings. To evaluate the models' efficacy, performance criteria like accuracy, recall, precision, and F1-score were applied. Results: In detecting fatigue, all three convolutional neural networks performed admirably. The ResNet50V2 model performed more effectively than the other two, with an overall accuracy of 98.51%. This suggests that it can distinguish between fatigue and non-fatigue states with greater accuracy. Conclusions: The efficacy of deep learning models in real-time fatigue detection has been proven by the research. More specifically, the ResNet50V2 model exhibits remarkable accuracy, making it a viable option for reducing accidents caused by drowsy driving. To improve road safety, future work can entail more system optimization and practical implementation.