Improve head shake and nod detection