WingDriver is an Artificial Intelligence Software as a Service company that applies AI to a combination of facial analysis, vehicle inertial data, and the vehicle surroundings to accurately identify dangerous situations. Alerts are generated to wake up drowsy drivers and to warn distracted drivers of danger. Other driver states are also detected. Data is optionally sent to the cloud for analysis and further algorithm improvement and product updates and new features are sent down from the cloud to the smartphone.