SafeDrive uses a webcam and a training model to detect if a driver is sleepy or not, and if they are sleepy, they are prompted with alarm and instructions to send them to the nearest resting location.