Introduction
Affective computing aims to bridge the gap between human emotion and machine understanding. Traditionally, sentiment analysis (determining polarity) and emotion recognition (identifying specific affective states) have been treated as independent tasks. However, these domains are inherently intertwined; for instance, an "angry" emotion almost certainly implies a "negative" sentiment. This paper introduces a deep multi-task learning (MTL) framework that leverages these interdependencies alongside multi-modal data—text, audio, and visual—to achieve state-of-the-art performance.
Methodology
The core of the proposed architecture is designed to handle the complexities of modality fusion and temporal context through a hierarchical approach.
Feature Extraction and Contextual Modeling
The model utilizes Bi-directional Gated Recurrent Units (Bi-GRUs) to extract sequential features from each modality (Text, Acoustic, and Visual) across a series of utterances. This ensures that the temporal dynamics within a single modality are captured before inter-modal fusion occurs.
Contextual Inter-modal (CIM) Attention
The defining innovation of this work is the Contextual Inter-modal (CIM) Attention mechanism. Unlike standard fusion techniques that might simply concatenate features, CIM computes correlations between pairs of modalities (e.g., Text vs. Visual) across different utterances. This allows the model to dynamically weigh the importance of each modality based on the surrounding context. For example, if a speaker's words are ambiguous, the model can shift its focus to visual cues or acoustic tone from previous or subsequent utterances to resolve the sentiment.
Multi-task Learning Framework
The processed features are fused into a shared representation that feeds into two specialized output heads: a Softmax layer for binary sentiment classification and a Sigmoid layer for multi-label emotion recognition (covering Anger, Disgust, Fear, Happy, Sad, and Surprise). By training these tasks simultaneously, the model develops more robust internal representations, effectively "cross-pollinating" knowledge between sentiment and emotion labels.
Experimental Setup and Results
The framework was evaluated on the CMU-MOSEI dataset, a large-scale benchmark containing over 23,000 utterances from more than 1,000 speakers.
Performance Benchmarks
The model established new state-of-the-art results on CMU-MOSEI:
- Sentiment Analysis: Achieved an F1-score of 78.8% and an accuracy of 80.5%.
- Emotion Recognition: Achieved an average F1-score of 78.6% across six emotion categories.
Statistical analysis confirmed that the Multi-task (MTL) approach significantly outperformed Single-task (STL) variants ($p < 0.05$), validating the hypothesis that joint learning provides a synergistic benefit.
Discussion: The Role of Context and Modality
A key insight from the study is that "context is king." The CIM attention mechanism allows the model to capture the emotional "flow" of a conversation. Since human emotional states rarely change instantaneously, the context provided by neighboring utterances acts as a powerful prior for disambiguating current states.
Furthermore, the model's ability to dynamically weight modalities is crucial for handling complex phenomena like sarcasm, where textual information may contradict the speaker's true intent revealed through tone or facial expression.
Conclusion and Future Directions
While the MTL framework shows significant promise, challenges remain regarding data imbalance—specifically for less frequent emotions like "fear" and "surprise." Future research will focus on predicting emotion intensity rather than just presence and expanding the framework to include additional tasks such as speaker identification or intent detection to further deepen the system's emotional intelligence.
Summary updated