Our level of alertness rises and falls over the course of a workday, sometimes causing our energy to drop and our minds to wander just as we need to perform important tasks. To help understand these patterns and improve productivity, researchers have developed a tool that tracks alertness by measuring pupil size, captured through a burst of photographs taken every time users unlock their smartphones.