Analysis and Optimization of Systems for Detecting Sleepiness in Drivers