Plenty of measures can tell you something about the user's state of mind: keystrokes, how many windows are open and their content, whether the user is scrolling, the time of day, the contents of a desktop calendar even background noises from a microphone and visual information from a camera.
ECONOMIST: Computing