Psychologists used an infrared camera that measured pupil width to track people's response to stressful events in real-time.