Abstract
While HMAX features have been proved to have excellent performance in image categorization tasks, the computational cost of recognition is expensive. If we aim to apply the HMAX features to object localization tasks, in which the categorization tasks are repeatedly performed by sliding windows, their processing time increases enormously. In this paper, we propose a method for speed up in computation of object localization based on HMAX features. We found that the HMAX features cause specific redundancies in the sliding window approach. The speed up is achieved by eliminating the redundancies in our method. The results from experiments using the University of Illinois-Urbana-Champaign (UIUC) car dataset and the face detection dataset benchmark (FDDB) indicate that this modification improved processing speeds significantly with insignificant reductions in precision.
Introduction: The Computational Burden of HMAX
The HMAX model is a biologically inspired framework that mimics the hierarchical structure of the human visual cortex, specifically the simple and complex cells. While it excels at image categorization—identifying what is in an image—it is notoriously slow for object localization—identifying where an object is.
Traditionally, localization relies on a "sliding window" approach. The algorithm crops a small window, runs the entire HMAX pipeline, moves the window a few pixels, and repeats this across thousands of positions and multiple scales. This process is computationally ruinous due to significant redundancies. Overlapping windows repeatedly calculate the same low-level features, and multi-scale processing often captures redundant information across different filter sizes.
Proposed Method: Eliminating Redundancy
The authors propose a method that replaces the exhaustive sliding window with three key optimizations designed to eliminate these redundancies.
1. Coarse-to-Fine Search
Instead of checking every possible window, the algorithm employs a coarse-to-fine strategy. It first searches for large-scale features to create a "probability map" or candidate mask. If no significant object presence is detected in a region at a coarse scale, the algorithm skips searching for smaller versions in that area. This drastically prunes the search space.
2. Image Pyramids and Optimized Pooling
Standard HMAX implementations use many different filter sizes on a single image. This paper instead uses a single filter size applied to an image pyramid (a stack of resized images), allowing for shared computations across scales. Furthermore, to retain spatial information without the cost of window-by-window processing, the authors use "Divided Max-Pooling." By treating the whole image as a single field and using morphological operations like dilation for pooling, they transform a serial process into a parallel-friendly one.
3. Feature Selection with Adaboost
To further reduce complexity, "Real Adaboost" is used to select only the most discriminative visual prototypes (patches) from the HMAX dictionary. This reduces the number of expensive Radial Basis Function (RBF) calculations required in the S2 layer.
Experimental Results
The approach was evaluated on the UIUC car dataset and the Face Detection Data Set and Benchmark (FDDB). The quantitative results demonstrate a massive leap in efficiency:
- Speedup: On the FDDB dataset, the standard sliding window approach required 774.40 seconds per image. The proposed method reduced this to just 3.05 seconds—a 253x speedup.
- Accuracy: On the UIUC multi-scale dataset, the Equal-Error Rate (EER) only slightly decreased from 43.0% to 42.0%. In some single-scale tests, the proposed method actually improved accuracy (79.0% vs 77.5% EER) while being approximately 400 times faster.
Conclusion
By identifying and eliminating the inherent redundancies in the sliding window application of HMAX, the authors achieved significant computational gains. The "shape-first" pruning and optimized spatial pooling allow HMAX to be used effectively for real-time object localization tasks without sacrificing the robustness of the biological model. Future work will focus on extending this efficiency to multi-category detection and further optimizing feature sharing across different object classes.
Summary updated