[Paper Review] Integrating Contextual Knowledge to Visual Features for Fine Art Classification
This paper introduces ArtGraph, a Neo4j-based knowledge graph integrating WikiArt and DBpedia to model artistic entities and relationships. It enhances deep learning for fine art classification by fusing visual features from ResNet50 with node2vec embeddings from the knowledge graph, achieving 62.50% accuracy in artist prediction—outperforming both a visual-only baseline and the ContextNet model.
Automatic art analysis has seen an ever-increasing interest from the pattern recognition and computer vision community. However, most of the current work is mainly based solely on digitized artwork images, sometimes supplemented with some metadata and textual comments. A knowledge graph that integrates a rich body of information about artworks, artists, painting schools, etc., in a unified structured framework can provide a valuable resource for more powerful information retrieval and knowledge discovery tools in the artistic domain. To this end, this paper presents ArtGraph: an artistic knowledge graph based on WikiArt and DBpedia. The graph, implemented in Neo4j, already provides knowledge discovery capabilities without having to train a learning system. In addition, the embeddings extracted from the graph are used to inject "contextual" knowledge into a deep learning model to improve the accuracy of artwork attribute prediction tasks.
Motivation & Objective
- To develop a comprehensive artistic knowledge graph that captures rich contextual relationships among artworks, artists, styles, and movements.
- To enable knowledge discovery in the arts without requiring model training, using Neo4j’s query capabilities.
- To improve the accuracy of fine art attribute prediction (artist, style, genre) by integrating structured contextual knowledge into deep learning models.
- To overcome limitations of prior KGs that lack artist relationships and external knowledge sources by leveraging Wikipedia and DBpedia.
- To provide a publicly available, extensible resource for researchers in digital humanities and computer vision.
Proposed method
- ArtGraph is constructed by integrating structured data from WikiArt (artworks, metadata) and DBpedia (artist biographies, relationships) into a single graph database using Neo4j.
- Node2vec is applied to the ArtGraph to generate 128-dimensional embeddings for each node, encoding contextual knowledge into vector form.
- A multi-task, multi-modal deep learning model combines visual features (2048D from ResNet50) and graph embeddings (128D) via concatenation for joint prediction of artist, style, and genre.
- The model is trained with a weighted combination of cross-entropy loss for classification and mean squared error (MSE) loss to align visual and contextual feature spaces.
- Hyperparameters are tuned using a 10% validation set; graph embeddings are learned only on the training graph to prevent data leakage.
- The training split uses 80% of the data, with 10% for validation and 10% for testing, ensuring generalization to unseen artworks.
Experimental results
Research questions
- RQ1Can a knowledge graph integrating external sources like DBpedia and WikiArt improve the accuracy of fine art classification beyond visual features alone?
- RQ2How does the integration of graph-learned embeddings from a structured artistic knowledge graph enhance deep learning models in multi-label art attribute prediction?
- RQ3Does a graph-based approach that models relationships between artists (e.g., influence, movement affiliation) lead to better generalization than models relying only on metadata?
- RQ4To what extent does injecting contextual knowledge via node2vec embeddings outperform methods that use embeddings only as regularization?
- RQ5Can a knowledge graph serve not only as a training signal but also as a standalone tool for knowledge discovery in art history?
Key findings
- The proposed model achieved 62.50% accuracy in artist classification, surpassing the fine-tuned ResNet50 baseline (61.13%) and ContextNet (62.20%).
- For style prediction, the model reached 65.93% accuracy, outperforming the baseline (62.65%) and ContextNet (62.24%).
- In genre classification, the model achieved 66.52% accuracy, exceeding the baseline (65.32%) and ContextNet (65.93%).
- The integration of graph embeddings significantly improved performance across all three tasks, demonstrating the value of contextual knowledge in deep learning for art analysis.
- The ablation study confirmed that the multi-task loss with MSE alignment of visual and contextual features improved generalization and model robustness.
- The knowledge graph enables standalone knowledge discovery, such as identifying artist influences and movement trends, without requiring model training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.