This paper presents models for improving accuracy and efficiency in recognizing a person's emotional state and age based on facial expressions using the combination of Local Binary Patterns and Squeeze-and-Excitation Block methods. The proposed models were trained on the AffectNet dataset for emotion recognition and the Adience dataset for age recognition with four classes [angry, happy, neutral, sad] and [6-20, 25-30, 42-48, 60-98]. The accuracy and speed of these models, achieved after training, were compared with the results described in scientific articles published in the Scopus database. According to the obtained experimental data, the first and second developed models achieved validation accuracy of 81.5% and 72.3%, respectively.