Integrating teaching with students' emotions is seeking to optimize the learning of these students. This paper presents a learning system which combines different technologies like a learning social network or knowledge society, an authoring tool to produce intelligent tutoring systems and a system for emotion recognition. The recognition of affection or emotions is through modular neural networks which integrate the results of recognizing emotions in faces and voice. The system that recognizes emotions is integrated with the intelligent tutoring systems which in turn are integrated into the learning social network.