Smell and Emotion: Recognising emotions in smell-related artworks

Vishal Patoliya, Mathias Zinnen, Andreas Maier, Vincent ChristleinarXiv 2024

TL;DR

This paper explores the technical feasibility of using deep learning to recognize the emotions of individuals depicted in smell-related artworks. By adapting models trained on natural photography through style transfer and architectural refinements, the authors demonstrate that while the "domain gap" between art and photography remains a significant hurdle, automated emotion recognition in historical art is a promising new frontier for computational humanities.

What Problem Does This Paper Address?

While computer vision has made massive strides in recognizing emotions in natural photographs, historical artworks present a unique challenge known as the domain gap. Artistic representations of faces and bodies differ significantly from photographic ones in terms of texture, color, and abstraction.

Furthermore, the authors highlight a gap in sensory studies: while we can often identify what someone is smelling in a painting (e.g., a flower or a pipe), we rarely analyze the emotional response depicted. This work aims to bridge that gap, setting the stage for research that links olfactory references to the human emotional experience as captured by artists throughout history.

Methods

The researchers adopted a two-branch Convolutional Neural Network (CNN) architecture designed for "Emotion Recognition in Context."

Figure 2: Model architecture for Emotion Recognition in Context which uses two different branches to extract body and context features separately. In the fusion network, both features are merged for the final prediction (Discrete and Continuous dimensions). Figure taken from [10] with permission from the authors.

As shown in the architecture above, the model processes two inputs:

  1. Body Feature Extraction: A branch (using ResNet-18 or ResNet-50) that focuses on the individual's posture and facial expressions.
  2. Image (Context) Feature Extraction: A branch that analyzes the entire scene to capture situational cues.

To improve performance on artworks, the authors experimented with two main modifications:

  • Hyperparameter Tuning: They increased the resolution of the person-specific crops (to 224x224 pixels) to capture finer local details and swapped the context branch's pre-training from scene-centric weights (Places365) to object-centric weights (ImageNet).
  • Style Transfer: They created a "stylized" training set (EMOTIC-s) by applying the textures and colors of various artworks to natural photos using internal-external learning. The goal was to make the training data look more like the target domain (art).
Figure 1: Example of a style transfer using internal-external learning [21]: Image (a) is the normal photographic image from the EMOTIC dataset where the style transfer will be applied. Image (b) is the artwork image from WikiArt used to get style features. Finally, Image (c) is the output image where the main body or object content is from Image (a) and the colouring effect is from Image (b).

Datasets

  • EMOTIC: A large-scale dataset of ~23,500 natural photos used for initial training.
  • ODOR-emotions: A new, specialized test set created by the authors. It consists of 100 smell-related artworks from the Odeuropa project, manually annotated for emotions using the EMOTIC scheme (26 discrete categories and 3 continuous dimensions: Valence, Arousal, and Dominance).
  • WikiArt: Used as the source of "styles" for the style transfer process.

Key Insights and Ideas

  • The Domain Gap is Steep: Models that achieve ~26% Average Precision (AP) on photographic datasets see their performance halved (to ~13% AP) when applied to artworks without adaptation.
  • Context is Crucial: In smell-related art, the emotion is often tied to the object being smelled. The dual-branch approach is essential because the "context" branch can pick up on the presence of a pipe, a flower, or a pungent jug that explains the person's expression.
  • Style Transfer is a Double-Edged Sword: While style transfer helps the model handle artistic textures, it can inadvertently "smudge" or erase subtle facial features that are vital for distinguishing between similar emotions (like annoyance vs. concentration).
  • Resolution Matters: Simply increasing the crop size of the detected person led to one of the most consistent performance gains, suggesting that local details are easily lost in artistic representations.

Key Results

The baseline ResNet-50 model achieved an AP of 13.33 on the ODOR-emotions test set. By increasing the body crop size to 224 pixels, this improved to 13.49.

When training on the stylized EMOTIC-s dataset, the ResNet-50 model saw a modest boost to 13.93 AP. However, the smaller ResNet-18 model actually performed worse when trained on stylized data, dropping from 15.05 to 12.28 AP. This suggests that larger models are better at navigating the trade-off between learning artistic styles and maintaining feature recognition.

Qualitatively, the models still struggle with misclassifications, sometimes mistaking a look of "Confidence" for "Annoyance" in complex portraits.

Figure 3: Example of misclassifications from ODOR-e dataset where Ground Truth (GT) emotion and predicted emotion (Pred) are completely different. Image credits (left to right): Merry man holding a pewter jug and a pipe. Circle of Frans Hals. 1638–1640. RKDImages(302304), Portrait of Arnold Aletrino. Jan Veth. 1885. RKDImages(20797).

Limitations and Future Work

The primary limitation is the small size of the annotated artwork test set (100 images), which makes it difficult to draw definitive conclusions about specific emotion categories.

The authors suggest that future work should focus on:

  1. Conditioned Style Transfer: Developing methods that ensure facial expressions remain consistent and clear even after artistic textures are applied.
  2. Fine-tuning on Art: Moving beyond zero-shot or style-transferred training by creating larger, natively artistic datasets for fine-tuning.
  3. Interdisciplinary Links: Connecting these emotional extractions to specific olfactory references to better understand the "sensory landscape" of historical art.

Summary updated

BibTeX
@misc{patoliya2024smell,
  author = {Vishal Patoliya and Mathias Zinnen and Andreas Maier and Vincent Christlein},
  title = {{Smell and Emotion: Recognising emotions in smell-related artworks}},
  year = {2024},
  eprint = {2407.04592},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.04592},
}
Figure