[Paper Review] Query by Semantic Sketch
This paper introduces a sketch-based visual retrieval method that enables users to query multimedia collections by drawing the spatial distribution of semantic concepts—such as 'sky' or 'person'—on a 2D canvas. Using a compact vector representation derived from deep neural network-generated concept maps and pre-trained word embeddings, the approach supports efficient kNN-based retrieval with significant storage savings and no need for specialized indexing structures.
Sketch-based query formulation is very common in image and video retrieval as these techniques often complement textual retrieval methods that are based on either manual or machine generated annotations. In this paper, we present a retrieval approach that allows to query visual media collections by sketching concept maps, thereby merging sketch-based retrieval with the search for semantic labels. Users can draw a spatial distribution of different concept labels, such as "sky", "sea" or "person" and then use these sketches to find images or video scenes that exhibit a similar distribution of these concepts. Hence, this approach does not only take the semantic concepts themselves into account, but also their semantic relations as well as their spatial context. The efficient vector representation enables efficient retrieval even in large multimedia collections. We have integrated the semantic sketch query mode into our retrieval engine vitrivr and demonstrated its effectiveness.
Motivation & Objective
- Address the limitations of traditional text-based and low-level feature-based image retrieval in large-scale multimedia collections.
- Overcome the challenges of sketch-based retrieval by incorporating both semantic meaning and spatial relationships of concepts.
- Enable efficient, scalable retrieval without requiring dedicated index structures by using a compact vector representation.
- Support dynamic addition of new semantic classes without retraining existing neural networks.
- Demonstrate the feasibility and performance of the method on a large video dataset (V3C1) using the vitrivr retrieval engine.
Proposed method
- Generate concept maps from input images using deep neural networks to detect semantic concepts (e.g., 'person', 'sky') at the pixel level.
- Represent each semantic concept using pre-trained word2vec embeddings, which are projected into a low-dimensional space via t-SNE for compactness.
- Aggregate spatial information by dividing the image into a grid (e.g., 8x8, 16x16, 32x32) and computing the average embedding per grid cell.
- Construct a final vector representation of size $ n^2 d $, where $ n $ is the grid size and $ d $ is the dimensionality of the semantic embedding.
- Support query formulation by allowing users to sketch concept distributions on a 2D canvas using color-coded labels, which are then converted into the same vector space.
- Perform retrieval via kNN-lookup using the Manhattan (L1) distance metric on the compact vector representation.
Experimental results
Research questions
- RQ1Can a compact vector representation effectively encode both semantic concepts and their spatial distribution for efficient sketch-based retrieval?
- RQ2How does the proposed method compare to prior approaches in terms of storage efficiency and retrieval performance on large-scale multimedia collections?
- RQ3To what extent can new semantic classes be added without retraining existing neural networks?
- RQ4Does incorporating spatial and semantic relationships improve retrieval accuracy compared to methods relying only on isolated concept detection?
- RQ5Can the method achieve fast retrieval without requiring specialized index structures, even at scale?
Key findings
- The proposed method reduces storage requirements to as low as 4.2% of the baseline method described in [8], depending on configuration parameters.
- On the V3C1 dataset with 1,046,235 vectors, a naive linear kNN lookup took an average of 974 ms, demonstrating feasibility for interactive use.
- The method supports dynamic addition of new semantic classes without retraining existing neural network classifiers, thanks to pre-computed word embeddings.
- The vector representation preserves both semantic similarity between concepts and their spatial layout, enabling more accurate and context-aware retrieval.
- The approach enables efficient retrieval using only standard kNN with L1 distance, eliminating the need for specialized index structures.
- The method has been successfully integrated into the vitrivr retrieval engine and demonstrated in public field tests, confirming its practical viability.
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.