Affectiva’s basic program analyzes the face 20 times a second for 46 localized expressions of happiness, sadness, surprise, fear, anger, disgust and contempt, plus interest and confusion.