TL;DR
This paper introduces a novel approach to discovering "mid-level visual elements" (representative and discriminative image patches) by combining deep Convolutional Neural Network (CNN) activations with pattern mining techniques. This method efficiently finds these elements and uses them to create powerful image representations that achieve state-of-the-art performance on object and scene classification tasks.
What Problem Does This Paper Address?
In computer vision, understanding images often involves identifying meaningful "parts" or "elements" that are characteristic of an object or scene. These are known as mid-level visual elements. For example, a car image might contain "wheel" patches, which are representative (frequently appear in car images) and discriminative (rarely appear in non-car images). Traditionally, discovering these elements requires extensive human annotation or complex, computationally expensive methods. This paper aims to automate this discovery process by leveraging the rich features learned by deep CNNs and applying efficient pattern mining algorithms, reducing the need for manual supervision.
Methods
The core of this work is the Mid-level Deep Pattern Mining (MDPM) algorithm. Here's a breakdown of the key steps:
- CNN Activation Extraction: Image patches are fed into a pre-trained CNN (like CaffeNet or VGG-VD), and the activations from a fully-connected layer are extracted. The paper highlights two crucial properties of these activations:
- Sparsity: Discriminative information is concentrated in the indices of the largest activation values.
- Binarizability: These activations can be binarized without significant loss of information.
- Transaction Creation: Each image patch is transformed into a "transaction" for pattern mining. A transaction consists of the indices of the K largest CNN activation values, plus a label indicating whether the patch belongs to the target category or the background. This leverages the sparsity and binarizability properties to create compact transactions.
- Pattern Mining: Association rule mining (specifically, the Apriori algorithm) is applied to the transaction database to discover frequent and discriminative patterns. These patterns represent recurring combinations of CNN activation indices. The paper shows that the support and confidence metrics in association rule mining naturally align with the requirements of "representativeness" and "discriminativeness" for mid-level visual elements.
- Mid-level Visual Element Retrieval: Image patches that exhibit the discovered patterns are retrieved. These collections of visually similar and semantically consistent patches form the mid-level visual elements.
- Image Representation: Two methods are proposed to encode images using the discovered patterns and elements:
- Bag-of-Patterns (BoP): Similar to Bag-of-Visual-Words, this method uses the discovered patterns as "visual words." An image is represented by a histogram indicating which patterns are present in its CNN activations.
- Bag-of-Elements (BoE): This method first merges visually similar mid-level elements to reduce redundancy and then trains detectors for these merged elements. An image is represented by the responses of these detectors across different scales and spatial locations. The paper emphasizes that merging elements (BoE-M) significantly improves performance over simply selecting elements (BoE-S).
Datasets
The proposed methods were evaluated on the following datasets:
- Pascal VOC 2007: A standard dataset for object classification, containing 20 object classes.
- Pascal VOC 2012: An extension of VOC 2007 with more images.
- MIT Indoor dataset: A dataset for scene classification, featuring 67 indoor scene categories.
Key Insights and Ideas
- CNN Activations as Transaction Data: The paper ingeniously bridges the gap between deep learning features and traditional pattern mining by showing that CNN activations can be effectively transformed into transactions, enabling the application of established mining algorithms.
- Pattern Mining for Element Discovery: Framing mid-level visual element discovery as a pattern mining problem is a novel contribution. The inherent properties of association rule mining (support and confidence) directly map to the desired characteristics of representativeness and discriminativeness.
- Merging for Robustness: The proposed merging step for mid-level elements (leading to the BoE-M representation) is crucial. It effectively handles redundancy and significantly boosts classification performance compared to methods that don't merge.
- Contextual Information: The paper explores how mid-level elements can capture not just object parts but also contextual information, which is important for understanding scenes and object relationships.
Key Results
- State-of-the-Art Performance: The proposed Bag-of-Elements (BoE-M) representation, leveraging CNN activations and pattern mining, achieved state-of-the-art or comparable performance on both Pascal VOC (object classification) and MIT Indoor (scene classification) datasets.
- BoE vs. BoP: The Bag-of-Elements representation consistently outperformed the Bag-of-Patterns representation, highlighting the benefit of merging mid-level elements.
- Efficiency: The MDPM algorithm is efficient, with pattern mining taking only 23 seconds for a large dataset, though CNN activation extraction remains the bottleneck.
- Contextual Elements: A significant portion of discovered mid-level elements captured contextual information, particularly for categories like "person" and "boat."
Limitations and Future Work
- Transaction Length: While a transaction length of 20 was found to be a good trade-off, longer lengths could potentially lose more information. The exponential growth of the search space with transaction length is a practical limitation.
- Merging Threshold: The performance is sensitive to the merging threshold (Th) in the BoE-M approach, requiring tuning.
- Scalability: The feature dimension of the Bag-of-Elements representation scales with the number of categories, making it challenging for datasets with a very large number of classes (e.g., ImageNet).
- Future Work:
- Develop efficient methods to mine patterns shared across categories for better scalability.
- Extend the method to a metric learning setting for tasks like image matching.
- Apply the approach to other applications that can benefit from pattern mining.
- Investigate the use of binary CNN features to eliminate the need for selecting K largest activations.
Summary updated