Improving automatic detection of driver fatigue and distraction using machine learning