Spatial-Content Image Search in Complex Scenes

Jin Ma, Shanmin Pang, Bo Yang, Jihua Zhu, Yaochen LiWACV 2020

Introduction

Image retrieval systems typically operate at two levels: instance-level (finding a specific object) or category-level (finding any object of a certain class). However, searching for complex scenes—where multiple objects interact in specific layouts—remains a significant challenge. Traditional methods often suffer from "semantic discrepancy," where retrieved images match the labels (e.g., "person" and "frisbee") but fail to match the visual appearance or relative scale of the query. This paper introduces a spatial-content image search method designed to bridge this gap by treating images as collections of spatially-located visual contents.

Methodology

The proposed system employs a multi-stage pipeline to represent and compare complex scenes:

  1. Object Detection: The system uses YOLOv3 to identify objects, generating bounding boxes and category labels.
  2. Visual Feature Extraction: For every detected object, deep convolutional features are extracted using the GoogleNet (GNet-Conv) architecture. These features are sum-pooled to create a specific visual descriptor for each bounding box.
  3. Unified Representation: Each image is represented as a set of tuples containing position, label, and visual features.
Object detection and spatial layout extraction using YOLOv3 to define the search parameters.
  1. Similarity Scoring: A custom function matches objects between a query and the database. It uses a balancing parameter ($\alpha$) to weigh spatial overlap (Intersection over Union) against visual consistency (cosine similarity of deep features).

Key Insights and Results

The researchers evaluated their method on the MS-COCO 2017 and Visual Genome datasets, showing substantial improvements over standard baselines. On MS-COCO, the method improved mean Average Precision (mAP) by 24%.

A critical finding was that an $\alpha$ value of 0.2 was optimal. This suggests that while spatial layout provides necessary structure, visual content is the dominant factor in what users perceive as a "similar" complex scene. By using bounding boxes as anchors for feature extraction, the system effectively ignores background noise and focuses on the relationships between key objects.

An example of a complex scene (frisbee play) that the system can effectively retrieve by matching visual and spatial cues.

Limitations and Future Work

While effective, the system is currently limited by the vocabulary of the YOLOv3 detector. If an object is not in the training set, the system cannot represent its spatial-semantic role. Additionally, while feature extraction is efficient, search time currently scales linearly with database size. Future work will explore the use of inverted files for scaling and the explicit modeling of higher-level "scene graphs" to capture complex relationships like "man riding horse" versus "man standing next to horse."

Summary updated

BibTeX
@inproceedings{ma2020spatial,
  author = {Jin Ma and Shanmin Pang and Bo Yang and Jihua Zhu and Yaochen Li},
  title = {{Spatial-Content Image Search in Complex Scenes}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2020},
  url = {https://openreview.net/forum?id=V_hgRygMFZ},
}
Figure