In high school a friend of mine told me about "microsleep" and how your brain will oscillate into it if you're under-rested. This would align with that theory.