I had a similar experience in a math class not too long ago. I was trying my best to stay awake and didn't realize I had fallen asleep until I leaned over too far and smacked my head on the wall. The good thing was half the other people in the class were also asleep, so the only person who noticed was the girl sitting next to me.