Recognizing the fundamental role of learners' emotions in the educational process, this study aims to enhance educational experiences by incorporating emotional intelligence (EI) into teacher robots through artificial intelligence and image processing technologies. The primary hurdle addressed is the inadequacy of conventional methods, particularly convolutional neural networks (CNNs) with pooling layers, in imbuing robots with emotional intelligence. To surmount this challenge, the research proposes an innovative solution—introducing a novel learning focal point (LFP) layer to replace pooling layers, resulting in significant enhancements in accuracy and other vital parameters. The distinctive contribution of this research lies in the creation and application of the LFP algorithm, providing a novel approach to emotion classification for teacher robots. The results showcase the LFP algorithm's superior performance compared to traditional CNN approaches. In conclusion, the study highlights the transformative impact of the LFP algorithm on the accuracy of classification models and, consequently, on emotionally intelligent teacher robots. This research contributes valuable insights to the convergence of artificial intelligence and education, with implications for future advancements in the field.