That's a good point. I'll have to think of ways to notice that–if there's a sudden drop in someone's productivity, or they seem obviously really tired, those should provide some early warning signs.
For me personally I try to get up and move around during the day rather than sit and spin my wheels on a problem. Otherwise I could waste 3x the time on something blindingly simple.