NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Tracing the Colors of Clothing in Paintings with Image Analysis

Alkim Almila Akdag Salah, Albert Ali Salah

Introduction: The Challenge of Content-Centric Art History

Art historians have long investigated the "politics of color," examining how specific hues signal status, gender, or religious affiliation. A classic example is the 20th-century shift where pink became associated with girls and blue with boys. However, tracking these shifts across centuries and thousands of artworks is a monumental task for human researchers.

While institutions like the Rijksmuseum have digitized vast portions of their collections, the accompanying metadata remains largely "object-centric"—focusing on the artist, date, and material—rather than "content-centric."

Example of object-centric metadata from the Rijksmuseum database.

As shown in Figure 1, standard database entries often lack specific tags for the gender of the sitter or the colors of their attire. This research aims to bridge this gap by developing an automated pipeline to "read" these features across massive datasets, revealing large-scale cultural patterns.

Methodology: An Automated Analysis Pipeline

The researchers developed a multi-stage workflow to extract and analyze clothing colors from portraiture.

The automated image analysis pipeline for clothing color tracing.

The pipeline, illustrated in Figure 3, consists of four primary steps:

  1. Face Detection and Landmark Extraction: Using the Supervised Descent Method (SDM), the system identifies faces and key landmarks such as eyes, nose, and mouth.
  2. Gender Classification: A classifier trained via Sequential Minimal Optimization (SMO) determines the sitter's gender. Notably, the model was trained on modern photographic datasets to test the transferability of gender features to artistic media.
  3. Clothing Segmentation: The GrabCut algorithm isolates the sitter's clothing from the background. To automate this, facial landmarks serve as "seeds," designating the area around the face as foreground and the frame edges as background.
  4. Color Distribution Visualization: Extracted colors are mapped into concentric circles, where ring thickness represents the frequency of a color for a given era and gender.

Datasets and Training

The study leveraged the Rijksmuseum database (112,039 high-resolution images) as the target dataset. For gender classification training, the authors used several benchmarks:

  • 10k US Adult Faces: For face memorability.
  • Labeled Faces in the Wild (LFW): A standard computer vision set.
  • Custom IMDB Dataset: 10,900 images of modern actors and actresses to provide a robust baseline for gendered features.

Key Insights: Bridging the Digital and the Historical

A significant finding was the cross-domain robustness of modern computer vision models. Models trained on contemporary digital photography achieved over 75% accuracy on 17th-century oil paintings. This suggests a consistent "visual grammar" of gender in portraiture across centuries.

Furthermore, the "seed" strategy for segmentation proved effective. By using facial landmarks to guide the GrabCut algorithm, the researchers bypassed the need for manual segmentation, allowing for the processing of thousands of images with minimal human intervention. While individual errors occur (e.g., misclassifying long-haired men), the authors argue that the "aggregate truth" of large-scale trends remains valid.

The analysis yielded several key results:

  • Classification Accuracy: The system achieved 77.21% gender classification accuracy on the Rijksmuseum dataset when trained on the IMDB data.
  • The "Color Gap": Data revealed that from 1500 to 1900, female sitters consistently wore lighter colors and a wider variety of hues than their male counterparts.
  • Dominance of Dark Tones: The study quantitatively confirmed the overall darkness of the collection, where bright colors typically serve as rare highlights against somber backgrounds.

Limitations and Future Directions

The system still faces challenges with historical styling, such as period-specific clothing or hairstyles that do not align with modern gender markers. Future work aims to expand the analysis to the Europeana collection and move beyond binary gender classifications to better reflect the complexities of social identity in art history. Additionally, replacing GrabCut with more advanced deep learning models could allow for the precise mapping of specific fabric textures like velvet or silk.

Summary updated

BibTeX
@inproceedings{salah2017tracing,
  author = {Alkim Almila Akdag Salah and Albert Ali Salah},
  title = {{Tracing the Colors of Clothing in Paintings with Image Analysis}},
  booktitle = {DH},
  year = {2017},
}
Figure