Gesture Classification in Artworks Using Contextual Image Features

Azhar Hussian, Mathias Zinnen, Thi My Hang Tran, Andreas Maier, Vincent ChristleinarXiv 2024 · DOI

TL;DR

Researchers have developed a new computer vision method to classify "smell gestures"—like sniffing a flower or holding one's nose—in historical artworks. By combining local features of a detected person with the global context of the entire painting, the model significantly improves classification accuracy, even when dealing with the limited and imbalanced data typical of art history datasets.

What Problem Does This Paper Address?

While modern AI excels at recognizing actions in natural photos (think YouTube clips or phone photos), historical artworks present a unique challenge. The "domain shift" from realistic photography to stylized painting often causes standard models to fail.

Specifically, this paper tackles the niche but culturally significant task of recognizing olfactory (smell-related) gestures. Understanding how smell is depicted in art helps historians reconstruct the "sensory landscape" of the past. However, researchers face three major hurdles:

  1. Low-Data Regime: There are far fewer annotated paintings than there are photos in datasets like ImageNet.
  2. Class Imbalance: Some gestures, like smoking, are common in art, while others, like "holding the nose," are rare.
  3. Ambiguity: A person holding a cup might be drinking or sniffing the aroma; without looking at the surrounding scene (the context), it is difficult for a machine to tell the difference.

Methods

The authors propose a two-step pipeline. First, they use standard object detection (like Faster R-CNN or YOLO) to identify people within the artwork. Second, they pass these detections through a dual-branch classification network.

A person holding their nose, illustrating the 'Holding the nose' class.

The architecture, inspired by previous work in emotion recognition, consists of:

  • The Local Branch: A ResNet-50 backbone that processes a cropped image of the detected person to capture fine-grained details of their posture and hand position.
  • The Context Branch: A separate ResNet-50 backbone that looks at the entire image. This allows the model to "see" the environment—for example, recognizing a kitchen setting to help identify a "cooking" gesture.
  • Fusion & Classification: The features from both branches are concatenated and fed into a four-layer Fully Connected Neural Network (FCNN) to produce the final gesture label.

Datasets

The primary benchmark used is the SniffyArt dataset, which contains 1,941 annotated persons across six gesture classes: sniffing, holding the nose, drinking, smoking, cooking, and a combination of drinking/smoking.

An example of the 'Cooking' gesture class.

The authors also reference several other artistic datasets used for pre-training or benchmarking in the field, including Art500k, OmniArt, and DEArt. As shown in the paper's distribution analysis, the dataset is highly skewed, with "smoking" instances vastly outnumbering "sniffing" or "cooking" instances.

Key Insights and Ideas

  • Context is King in Art: The most significant finding is that local features alone aren't enough. In an artistic setting, the background (utensils, flowers, tavern settings) provides vital clues that disambiguate similar-looking physical poses.
  • The Transformer Struggle: Surprisingly, sophisticated transformer-based models like SwinV2 and HRNet underperformed compared to traditional ResNet backbones. The authors attribute this to the fact that transformers typically require massive amounts of data to shine, whereas ResNets are more robust when fine-tuning on the small, specialized datasets found in digital humanities.
  • Joint Learning: By training the local, global, and fusion modules jointly, the model learns to weigh the importance of the environment against the person's specific pose dynamically.

Key Results

The inclusion of contextual information led to a "notable improvement" in F1 scores across every backbone tested:

  • HRNet-W32: Saw the most dramatic jump, from an F1 of 17.3 (without context) to 37.1 (with context).
  • ResNet-50: Improved from 31.1 to 36.8.
  • ResNet-101: Improved from 34.2 to 36.7.
  • SwinV2: Improved from 15.8 to 18.7.

These results demonstrate that even a simple concatenation of global features can provide a significant performance boost in low-data, high-imbalance scenarios.

Limitations and Future Work

The authors identify several areas for growth:

  • Data Scarcity: The small size of the SniffyArt dataset remains a bottleneck. They suggest that pre-training on more general human activity datasets before fine-tuning on smell gestures might help.
  • Pose Estimation: Future iterations aim to incorporate multimodal learning by leveraging pose estimation keypoints (skeletal data) to give the model a more explicit understanding of body mechanics.
  • Generalization: The current model is specialized for smell. The researchers hope to extend this approach to a broader range of artistic actions to create a more foundational understanding of human activity in visual culture.

Summary updated

BibTeX
@misc{hussian2024gesture,
  author = {Azhar Hussian and Mathias Zinnen and Thi My Hang Tran and Andreas Maier and Vincent Christlein},
  title = {{Gesture Classification in Artworks Using Contextual Image Features}},
  year = {2024},
  eprint = {2412.03456},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.03456},
}
Figure