In our attempts to model human intelligence by mimicking the brain structure and function, we overlook an important aspect in human cognition, which is the emotional factor. It may currently sound unthinkable to have emotional machines; however, it is possible to simulate certain artificial emotions with the aim of improving machine learning. This paper investigates the efficiency of an emotional neural network, which uses a modified back propagation learning algorithm. The modifed algorithm, namely the emotional BP learning algorithm, has two emotional parameters, anxiety and confidence, that are modeled during machine learning and decision making. The emotional neural network will be implemented to a facial recognition problem using images of faces with different orientations and contrast levels, and its performance will be compared to that of a conventional neural network. Experimental results suggest that artificial emotions can be successfully modeled and efficiciently implemented to improve neural networks learning and generaliztion.