Abstract
Existing research in scene image classification has focused on either content features (e.g., visual information) or context features (e.g., annotations). As they capture different information about images which can be complementary and useful to discriminate images of different classes, we suppose the fusion of them will improve classification results. In this paper, we propose new techniques to compute content features and context features, and then fuse them together. For content features, we design multi-scale deep features based on background and foreground information in images. For context features, we use annotations of similar images available in the web to design a filter words (codebook). Our experiments in three widely used benchmark scene datasets using support vector machine classifier reveal that our proposed context and content features produce better results than existing context and content features, respectively. The fusion of the proposed two types of features significantly outperform numerous state-of-the-art features.
Introduction
Scene classification is a fundamental task in computer vision, yet it remains challenging due to two primary factors: inter-class similarity and intra-class dissimilarity. Inter-class similarity occurs when different scene types (e.g., a hospital room and a bedroom) share common objects like beds and windows. Conversely, intra-class dissimilarity occurs when images of the same category appear visually distinct due to variations in furniture, lighting, or perspective.
Traditional approaches often rely solely on visual "content" features or textual "context" annotations. Content-only models frequently struggle with semantic nuances, while context-only models are often hampered by noisy or high-dimensional tag data. This research proposes the CCF (Content and Context Features) framework to bridge this gap by intelligently fusing multi-scale deep visual features with semantic context tags retrieved from the web.
Methodology
The CCF framework employs a two-pronged pipeline for feature extraction followed by a dimensionality-balanced fusion step.
1. Context Features (TF)
To capture semantic context, the system leverages the "Internet as a knowledge base." For a target image, the system searches for the top 50 visually similar images via a web search engine (Yandex). The associated tags and descriptions are collected and processed:
- Cleaning: A novel stemming algorithm groups related words (e.g., "plane" and "planes").
- Codebook Generation: A compact codebook is constructed using Word2Vec, GloVe, and fastText embeddings.
- Representation: The final context feature is a histogram representing the alignment of the image's retrieved tags with the refined codebook.
2. Content Features (DF)
Visual features are extracted using the VGG16 architecture, utilizing two distinct pre-trained versions:
- ImageNet-trained: Optimized for identifying foreground objects.
- Places-trained: Optimized for identifying background environments. To ensure robustness against varying image sizes, features are extracted at six different scales and aggregated via max-pooling into a stable multi-scale representation.
3. Feature Fusion
Direct concatenation of these features is problematic due to differing dimensions, which can bias the classifier. The authors utilize Principal Component Analysis (PCA) to reduce higher-dimensional features to match the size of the smallest vector. These equal-sized vectors are then concatenated into the final CCF descriptor for classification via a Support Vector Machine (SVM).
Experiments and Results
The CCF method was evaluated on three benchmark datasets: MIT-67 (indoor scenes), Scene-15 (mixed scenes), and Event-8 (outdoor sports).
| Dataset | CCF Accuracy | Previous SOTA |
|---|---|---|
| MIT-67 | 87.3% | 82.0% (HDF) |
| Scene-15 | 95.4% | 94.5% |
| Event-8 | 98.1% | - |
The results demonstrate that the fusion of content and context significantly outperforms individual feature sets. Notably, context features alone (77.1% on MIT-67) proved more effective than many traditional content-only features, validating the importance of semantic metadata.
Conclusion
The CCF framework demonstrates that combining foreground/background visual information with web-derived semantic context provides a superior representation for scene classification. By balancing feature dimensions through PCA, the model prevents visual data from overshadowing semantic tags. Future work will focus on addressing rotation sensitivity in multi-scale features and exploring unsupervised methods for tag codebook construction to enhance real-world applicability.
Summary updated