Modelling Local Deep Convolutional Neural Network Features to Improve Fine-Grained Image Classification

ZongYuan Ge, Chris McCool, Conrad Sanderson, Peter I. Corke

Abstract

We propose a local modelling approach using deep convolutional neural networks (CNNs) for fine-grained image classification. Recently, deep CNNs trained from large datasets have considerably improved the performance of object recognition. However, to date there has been limited work using these deep CNNs as local feature extractors. This partly stems from CNNs having internal representations which are high dimensional, thereby making such representations difficult to model using stochastic models. To overcome this issue, we propose to reduce the dimensionality of one of the internal fully connected layers, in conjunction with layer-restricted retraining to avoid retraining the entire network. The distribution of low-dimensional features obtained from the modified layer is then modelled using a Gaussian mixture model. Comparative experiments show that considerable performance improvements can be achieved on the challenging Fish and UEC FOOD-100 datasets.

Introduction

Fine-grained image classification involves distinguishing between categories that are visually very similar, such as specific fish species or types of food dishes. This task is challenging due to low inter-class variation and high intra-class variation caused by environmental factors like lighting and background. While global CNN features are powerful, they often fail to capture the subtle local details necessary for fine-grained tasks. A common solution is to model local image patches; however, the high dimensionality of standard CNN features (e.g., 4096D) makes them unsuitable for traditional stochastic modelling techniques like Gaussian Mixture Models (GMMs) due to the "curse of dimensionality."

Methods: The Low-Dimensional CNN (LDCNN)

To address the dimensionality issue, we propose a "network surgery" approach to create a Low-Dimensional CNN (LDCNN) feature extractor. Instead of retraining a full network, which is computationally expensive, we employ a layer-restricted retraining technique.

Comparison between the standard CNN architecture (top) and the proposed Low-Dimensional CNN (LDCNN) architecture (bottom).

The process involves:

  1. Task Adaptation: The final classification layer (fc-8) of a pre-trained CNN is modified to match the target dataset's class count and retrained.
  2. Dimensionality Reduction: The high-dimensional fc-6 layer is replaced with a smaller layer (e.g., 256 dimensions), and the subsequent fc-7 layer is re-initialized. Only these two layers are then retrained while the earlier convolutional layers remain frozen.

Once the network is tuned, low-dimensional features are extracted from local patches and modelled using a GMM. We further enhance this by using mean-only MAP adaptation and Inter-Session Variability (ISV) modelling to mitigate environmental noise.

Datasets

The proposed method was evaluated on two challenging datasets:

  • Fish Dataset: 3,960 images of 468 species, including controlled, underwater, and out-of-water environments.
  • UEC FOOD-100: 100 Japanese food categories, each with over 100 images.
Examples of fine-grained categories from the Fish and UEC FOOD-100 datasets, illustrating the high degree of visual similarity between classes.

Results and Discussion

Experimental results demonstrate that local modelling with LDCNN features significantly outperforms global CNN baselines. On the Fish dataset, the GMM-LDCNN-xy model, which incorporates spatial coordinates, achieved up to 57.0% accuracy, a 14.9% relative improvement over previous local GMM methods. On the UEC FOOD-100 dataset, the approach reached a rank-1 accuracy of 58.3%, outperforming the global SVM-CNN baseline (55.7%) and a global version of the low-dimensional features (SVM-LDCNN, 52.9%).

A key finding is that explicitly learning low-dimensional representations via network modification is superior to post-hoc dimensionality reduction like PCA. Additionally, spatial context was found to be highly discriminative for structured objects like fish but less so for more amorphous subjects like food.

Conclusion

This work demonstrates that deep CNNs can be effectively adapted as local feature extractors for fine-grained classification by reducing feature dimensionality through targeted layer retraining. While the current approach keeps convolutional filters frozen, future work will explore end-to-end fine-tuning using large pools of local patches to further enhance feature representation.

Summary updated

BibTeX
@inproceedings{ge2015modelling,
  author = {ZongYuan Ge and Chris McCool and Conrad Sanderson and Peter I. Corke},
  title = {{Modelling Local Deep Convolutional Neural Network Features to Improve Fine-Grained Image Classification}},
  booktitle = {ICIP},
  year = {2015},
  url = {https://openreview.net/forum?id=qbg4zCCcTk2},
}
Figure