Abstract
Emotion recognition has become an important area in human–computer interaction, with applications in areas such as mental health support, customer service, and adaptive learning systems. Most existing systems rely on a single type of input, such as facial expressions or text, which makes it difficult to fully understand the complexity of human emotions. To address this limitation, this project presents a multimodal emotion recognition system that combines three types of inputs: video (facial expressions), audio (speech), and text (user input). In addition, the system includes a conversational AI component that uses the detected emotion to generate more natural and context-aware responses.For the video modality, an EfficientNet-B0 convolutional neural network is used and fine-tuned on the AffectNet dataset, which contains 28,175 labeled facial images. The audio modality uses a Wav2Vec 2.0 transformer model trained on a combination of four speech emotion datasets: CREMA-D, RAVDESS, SAVEE, and TESS, with a total of approximately 11,970 samples. For text analysis, a BERT-based model is trained on a combined dataset of 125,000 samples from Sentiment140 and IMDB movie reviews.
Instead of using a learned fusion technique, this system combines the outputs from each modality using a rule-based weighted approach, where manually assigned weights (4.0 for video, 3.0 for audio, and 1.0 for text) are used to determine the final emotion. This approach is simple, interpretable, and allows the system to remain flexible when one or more inputs are missing. The final emotion is then passed to a Llama-2 7B language model, which generates responses that are more aligned with the user’s emotional state.
The system shows strong performance across all modalities. The video model achieves an accuracy of approximately 86%, the audio model achieves 84.6%, and the text model achieves 84.7%. The complete system is implemented as a real-time Flask web application that supports live video input, audio file processing, text input, and chatbot interaction. Overall, the results show that combining multiple modalities using a weighted approach improves the system’s ability to handle complex and ambiguous emotional scenarios, while the chatbot enhances the user experience by providing more natural and empathetic responses.