AB
AiBoss
project

Emotion-LLaMA - A multimodal emotion recognition and inference model that integrates audio, visual, and text input.

Emotion-LLaMA is a multimodal emotion recognition and inference model that integrates audio, visual, and text inputs, combining information through a specific emotion encoder. The model is based on a modified version of LLaMA, adjusted with instructions to improve emotion recognition capabilities...

What is Emotion-LLaMA?

Emotion-LLaMA is a multimodal emotion recognition and inference model that integrates audio, visual, and text inputs, combining information through a specific emotion encoder. The model is based on a modified version of LLaMA, adjusted with instructions to enhance emotion recognition capabilities. Researchers constructed the MERR dataset to facilitate training and evaluation, enabling the model to learn from multiple scenarios and apply to real-world situations. Emotion-LLaMA has demonstrated outstanding performance on multiple datasets and challenges, such as achieving an 84.52% WAF (Warnings-Awareness) in the MER-NOISE track of the MER2024 challenge, surpassing other teams. Its ingenious architecture fully leverages the advantages of LLaMA, incorporating key emotional cues.

Main functions of Emotion-LLaMA

  • Multimodal emotion recognitionIt can seamlessly integrate audio, visual, and text input through emotion-specific encoders, enabling more accurate recognition of complex emotional expressions. It can process images or videos containing facial expressions, body language, and contextual cues, predict the most likely emotion category, and display the predicted emotion label and corresponding confidence score.
  • Emotional reasoningWhen provided with multimodal inputs (such as video clips accompanied by audio and text), Emotion-LLaMA can generate natural language interpretations, analyze facial expressions, vocal cues, and linguistic content in the data, and generate coherent and human-like interpretations. It highlights specific cues and patterns that contribute to predicting emotions, providing value for applications that require transparent and interpretable emotion understanding.
  • Dataset construction and training supportThe MERR dataset was constructed, containing 28,618 coarse-grained and 4,487 fine-grained annotated samples, covering multiple emotion categories. This enables the model to learn from different scenarios and generalize to real-world applications, providing valuable resources for the training and evaluation of large-scale multimodal emotion models.
  • Excellent performanceIt has performed well on multiple datasets and challenges, such as achieving the highest scores in cue overlap and label overlap on the EMER dataset, an F1 score of 0.9036 in the MER2023-SEMI challenge, an F1 score of 0.8452 in the MER2024-NOISE challenge, and even outperforming ChatGPT-4V in zero-shot evaluation on the DFEW dataset.

The technical principle of Emotion-LLaMA

  • Multimodal input fusionEmotion-LLaMA seamlessly integrates audio, visual, and text input through emotion-specific encoders. It leverages HuberT models as audio encoders and multi-view visual encoders (such as MAE, VideoMAE, and EVA) to capture facial details, dynamics, and context, enabling a more comprehensive understanding of emotional expression.
  • Feature alignment and instruction adjustmentThe model aligns features from different modalities into a shared space, employing a modified LLaMA model with adjusted instructions. This helps the model better understand and process emotion-related tasks, enhancing its emotion recognition and reasoning abilities.
  • Dataset ConstructionTo support model training and evaluation, researchers constructed the MERR dataset, containing 28,618 coarse-grained and 4,487 fine-grained annotated samples, covering multiple emotion categories. This dataset enables the model to learn from different scenarios and generalize to real-world applications.
  • Based on Transformer architectureEmotion-LLaMA's core architecture is based on Transformer, utilizing autoregressive generation mechanisms, multi-head self-attention mechanisms, feedforward neural networks (FFN), residual connections, and positional encoding to achieve efficient natural language generation and sentiment inference.

Emotion-LLaMA's project address

Application scenarios of Emotion-LLaMA

  • Human-computer interactionIn scenarios such as intelligent assistants and chatbots, by analyzing users' emotional states in real time, responses based on user emotions can be generated, providing a more personalized interactive experience and enabling machines to better understand and respond to the emotional needs of human users.
  • EducationTeachers can use Emotion-LLaMA to understand students' emotional state and provide more targeted teaching support.
  • Mental health supportIn mental health counseling and intervention, models can help identify users' emotional states, provide counselors with more accurate emotion analysis, and offer timely psychological intervention and support to assist the treatment process.
  • Customer ServiceBusinesses can apply Emotion-LLaMA to their customer service systems to provide more personalized and attentive service by analyzing customers' emotional states.
  • Social media analyticsBy conducting sentiment analysis on comments and posts on social media, businesses can understand user sentiment trends and gain valuable market insights.