AttendAffectNet: Self-Attention based Networks for Predicting Affective Responses from Movies

Ha Thi Phuong Thao, Balamurali B. T., Dorien Herremans, Gemma Roig

Abstract

Predicting the emotional impact of movies on viewers is a complex multimodal task. This paper introduces AttendAffectNet, a framework leveraging Transformer-style self-attention mechanisms to model the interplay between diverse audio and visual features. By applying attention across modalities rather than just time, the proposed models achieve state-of-the-art performance in predicting emotional arousal (energy) and valence (pleasantness) on benchmark datasets like COGNIMUSE and MediaEval 2016.

Introduction

While traditional affective computing often focuses on recognizing the emotions of characters (e.g., facial expression recognition), predicting the emotions evoked in the viewer presents a significantly greater challenge. Movies are intricate multimodal experiences where sound, motion, and visual composition interact to trigger psychological responses.

Multimodal inputs: Video frames and audio waveforms used for affect prediction.

Existing methods frequently rely on simple feature concatenation, which fails to capture the nuanced, time-varying relationships between different modalities. AttendAffectNet explores whether self-attention—the core component of modern Large Language Models—can better model these cross-modal interactions to predict viewer affect.

Methodology

The researchers developed two primary architectures under the AttendAffectNet umbrella:

  1. Feature AttendAffectNet: This model employs a Transformer encoder to process a "sequence" of different feature types extracted from a movie clip. Instead of linguistic tokens, the inputs are diverse data types: static appearance (ResNet-50), spatio-temporal features (I3D), motion (FlowNetS), and two types of audio features (OpenSMILE and VGGish). This architecture allows the model to dynamically weigh the importance of each modality at any given moment.
  2. Temporal AttendAffectNet: This variant utilizes a Transformer decoder to model the sequential dependency of emotions over time, treating the movie as a series of chronological segments.
Feature extraction pipeline utilizing various deep learning architectures for visual and auditory data.

Training is guided by a custom loss function that combines Mean Squared Error (MSE) and the Pearson Correlation Coefficient (PCC). This dual objective ensures the model accurately predicts both the absolute emotional values and the overall "trend" of emotional shifts.

Experimental Setup and Datasets

The models were evaluated on two major benchmarks:

  • Extended COGNIMUSE: Comprising 12 half-hour Hollywood movie clips (e.g., Million Dollar Baby, Ratatouille) with continuous frame-level annotations for arousal and valence.
  • MediaEval 2016 (Global EIMT16): A larger dataset of 11,000 short movie excerpts (8–12 seconds each) designed to induce specific emotional responses.

Results and Discussion

The multimodal Feature AttendAffectNet established new performance benchmarks:

  • COGNIMUSE Performance: The model outperformed previous LSTM-based approaches for valence prediction, achieving a PCC of 0.572 and an MSE of 0.178.
  • MediaEval 2016 Performance: The model surpassed the top three results from the original 2016 challenge. For valence, it achieved an MSE of 0.185, improving upon the previous state-of-the-art (0.193).

Key Insights

  • Feature vs. Temporal Attention: Applying self-attention across different modalities (Feature AttendAffectNet) proved more effective than applying it across time (Temporal AttendAffectNet). This suggests that for short segments (5–10 seconds), the interplay between sound and sight is a more critical emotional driver than long-term plot context.
  • The Primacy of Audio: Single-modality tests revealed that audio-only models consistently outperformed video-only models, validating the film theory principle that the soundtrack is a primary driver of emotional state.
  • Architectural Simplicity: While standard Transformers use eight attention heads, the authors found that two heads performed best for this task, avoiding overfitting and suggesting that emotional data may require less architectural complexity than natural language.

Conclusion and Future Work

AttendAffectNet demonstrates the efficacy of self-attention in modeling multimodal emotional triggers in cinema. While the Temporal AttendAffectNet did not provide the expected boost—likely because the training segments were already emotionally self-contained—future research could explore hybrid models. Combining feature-level and temporal-level attention may yield better results for longer-form content where plot-driven context plays a more significant role in the viewer's emotional journey.

Summary updated

BibTeX
@inproceedings{thao2020attendaffectnet,
  author = {Ha Thi Phuong Thao and Balamurali B. T. and Dorien Herremans and Gemma Roig},
  title = {{AttendAffectNet: Self-Attention based Networks for Predicting Affective Responses from Movies}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.1109/icpr48806.2021.9412835},
}
Figure