Contextual recognition of robot emotions