Spain’s Universidad Carlos III of Madrid has developed a new warning system for drivers suffering drowsiness and distraction, which monitors and controls a driver’s attention level.

The Advanced Driving Alert System uses information taken through a video camera located on the dashboard of the car to measures signs such as the driver’s eye blinking speed, the degree to which eyes are open, a drooping head, the number of yawns they make or the direction the driver is looking in.

Initially, the system could help drivers who spend a lot of time at the wheel such as truck drivers or bus drivers before being applicable to all types of drivers, according to university researchers.