What is an emotional machine? Usually this term is applied to a machine-soft- or hardware-that is able to recognize, express and perhaps even ‘have’ emotions. The objective of these machines is to better understand their user and model their behavior accordingly, in order to provide a smoother and more intuitive interaction. Think, for instance, of a computer that detects that you are nervous and actively starts providing tips on how to perform the task at hand. Or the robot that knows you are tired, and brings you a bottle of beer as soon as you sit on the couch.

Research in emotional machines resembles, in many ways, research applied to building intelligent machines. In fact, the two are intimately related, as it is currently thought that a machine can only be truly intelligent if it is sensitive to human emotions.
More here.