Downloads · 30 days
0
BAFCS/Emotion-Recognition-in-Education-through-Deep-Learning
Emotion-Recognition-in-Education-through-Deep-Learning is a machine learning model from BAFCS. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for keras. The card lists the license as mit.
This set contains two models trained in the context of a thesis on emotion recognition in education, using deep learning techniques.
Downloads · 30 days
0
Access
Public
Updated Jul 30, 2025
Repo size
683 MB
Likes
0
Public
Click a slice to open those files.
.h5683 MB · 100%
From the Hugging Face model README
This set contains two models trained in the context of a thesis on emotion recognition in education, using deep learning techniques.
FacialModel-8177.h5: This model was developed as an ensemble combining convolutional neural networks, the VGG19 model, and Keras Tuner techniques. It was trained using two widely recognized datasets in the field of emotion recognition: FER2013 and CK+48. To address class imbalance, two complementary strategies were applied: (1) the use of weighted classes to adjust the importance of each class based on its representation, and (2) the generation of synthetic data through data augmentation techniques, which improved the distribution of emotions and the model’s generalization.
TextModel-0.7836.h5: Model based on the RoBERTa architecture, extended with an N-Gram approach and fine-tuned using three Conv1D layers with 128 filters. The model was primarily trained on the ISEAR dataset and supplemented with two additional emotions —Surprise and Neutral— from the MELD dataset, selected for their relevance in educational contexts and supported by relevant scientific literature. Data augmentation techniques were applied to enhance dataset diversity, along with a thorough cleaning process to ensure the semantic quality of the texts.
Both models are in .h5 format and were developed using TensorFlow and Keras. They have been fine-tuned to capture emotional expressions relevant to educational environments.
Note on Model Loading:
model = tf.keras.models.load_model("FacialModel-8177.h5")
TFRobertaModel). You must specify them when loading the model:
from transformers import TFRobertaModel
from tensorflow.keras.models import load_model
def custom_objects_fn_roberta():
return {'TFRobertaModel': TFRobertaModel}
model = load_model("TextModel-0.7836.h5", custom_objects=custom_objects_fn_roberta())
The complete source code for training, preprocessing, and evaluating the models can be found in the following repository: GitHub: BAFCS/Emotion-Recognition-in-Education-through-Deep-Learning
Contact: [email protected], [email protected]