Automated Facial Emotion Recognition: Development And Application To Human-Robot Interaction