A new computational model can predict people’s emotions — including joy, gratitude, confusion, regret, and embarrassment — as well as human observers can. The model, developed at MIT, is designed to mimic how observers reason about each other’s emotions.