The present invention is directed to a safety and security system for vehicles. The safety and security system include a computing unit mounted in a vehicle; one or more optical sensors in electronic communication with the computing unit, the optical sensors are configured for facial recognition and are positioned in the vehicle to capture a face and head movements of a driver. The computing unit equipped with the facial recognition technology and artificial intelligence determined the electiveness of the driver. In case the driver is inattentive, the safety and security system warn the driver and takes any precautionary measure, such as slowing down the speed of the vehicle.