Abstract: Mid-level visual element discovery aims to find clusters of image patches that are both representative and discriminative. In this work, we study this problem from the prospective of pattern mining while relying on the recently popularized Convolutional Neural Networks (CNNs). Specifically, we find that for an image patch, activation extracted from the first fully-connected layer of a CNN have two appealing properties which enable its seamless integration with pattern mining. Patterns are then discovered from a large number of CNN activations of image patches through the well-known association rule mining. When we retrieve and visualize image patches with the same pattern, surprisingly, they are not only visually similar but also semantically consistent. We apply our approach to scene and object classification tasks, and demonstrate that our approach outperforms all previous works on mid-level visual element discovery by a sizeable margin with far fewer elements being used. Our approach also outperforms or matches recent works using CNN for these tasks.
Introduction: The Challenge of Mid-level Discovery
In computer vision, "mid-level visual elements" are clusters of image patches that represent meaningful parts of an object or scene—such as a specific wheel type or a window style. To be effective, these elements must be both representative (frequently occurring within a category) and discriminative (rarely found in other categories).
Historically, discovering these elements was a significant computational bottleneck. Previous methods relied on hand-crafted features like HOG, which are often "lossy" and struggle with complex visual variations. Furthermore, the search process involved scanning tens of thousands of patches, often requiring hours of computation to find a handful of useful detectors. The authors of this paper sought a way to make this process both more accurate and computationally scalable.
Methodology: From CNNs to Association Rules
The core innovation of Mid-level Deep Pattern Mining (MDPM) is transforming this vision problem into a "market basket analysis" problem, typically used in retail data mining.
- Feature Extraction: The system utilizes a pre-trained CNN, specifically extracting activations from the
fc6fully-connected layer. - Sparsity and Binarization: The researchers discovered that these activations are naturally sparse and can be binarized without significant loss of information. The most critical data is stored in the indices of the neurons that fire the strongest, rather than their exact magnitudes.
- Transaction Creation: Each image patch is converted into a "transaction." For example, if neurons at indices 3, 100, and 4096 are the top activations for a "car" patch, the transaction is recorded as
{3, 100, 4096, pos}. - Association Rule Mining: By applying the Apriori algorithm, the system efficiently finds "frequent itemsets"—groups of neuron indices that appear together often in the target class but rarely in the "natural world" (negative set).
- Ensemble Merging: Redundancy is removed through an iterative process that merges overlapping elements and trains Linear Discriminant Analysis (LDA) detectors for the final visual elements.
Key Insights: Efficiency and Semantic Consistency
By treating CNNs as high-quality feature generators that "clean" data for traditional mining, MDPM achieves remarkable efficiency. While baseline methods might take 9 hours to find visual elements for a single class, MDPM completes the task in approximately 3 minutes.
Beyond speed, the discovered patterns exhibit high semantic consistency. Unlike traditional methods that might group patches based on simple color or texture, MDPM groups patches that capture the same semantic part, even across varying lighting and angles.
Results and Performance
The approach was evaluated on two major benchmarks:
- MIT Indoor: MDPM achieved 69.69% accuracy, significantly outperforming the previous best mid-level method (DMS) at 64.03%. Notably, it achieved this using 10x fewer detectors (20 vs. 200).
- PASCAL VOC 2007: Combining MDPM features with global CNN features reached 77.9% mAP, matching or exceeding contemporary deep learning approaches.
Conclusion
MDPM demonstrates that the specific combination of firing neurons is more important for mid-level discovery than their precise activation values. This shift from continuous optimization to discrete pattern mining allows for a faster, more accurate, and more interpretable discovery of visual elements. Future work may explore fine-tuning these networks specifically for the target task or using these patterns to improve the explainability of deep learning models.
Summary updated