Maximum Likelihood Directed Enumeration Method in Piecewise-Regular Object Recognition

Andrey V. Savchenko · DOI

Abstract

This paper presents the Maximum-Likelihood Directed Enumeration Method (ML-DEM), a statistically principled approach to fast nearest-neighbor search in object recognition. Unlike traditional heuristic-based approximate nearest neighbor (ANN) methods, ML-DEM utilizes the asymptotic properties of Kullback-Leibler (KL) information discrimination to estimate the likelihood of class membership. By modeling objects as piecewise-regular segments, the algorithm greedily selects models for comparison based on maximal likelihood. Experimental results on the FERET face recognition dataset demonstrate that ML-DEM outperforms standard libraries like FLANN and NonMetricSpaceLib in both speed and accuracy, particularly in non-metric spaces.

1. Introduction

In the domain of real-time object recognition, such as facial identification or speech signal processing, researchers often encounter the "medium-sized database" challenge. These databases typically contain thousands of classes, but only a limited number of reference models per class. In such scenarios, high-capacity models like Deep Neural Networks often struggle due to data sparsity, making Nearest Neighbor (NN) classification the preferred approach.

However, the computational cost of brute-force NN search is prohibitive for real-time applications. While Approximate Nearest Neighbor (ANN) methods—such as randomized kd-trees or Best-Bin-First—offer speed improvements, they are largely heuristic. These methods often fail to provide performance guarantees when similarity measures do not satisfy metric properties (e.g., the triangle inequality) or when classes are highly similar. This paper proposes the Maximum-Likelihood Directed Enumeration Method (ML-DEM), a statistically optimal greedy algorithm designed to address these limitations.

2. Methodology: The ML-DEM Framework

The ML-DEM algorithm shifts the search paradigm from geometric partitioning to statistical hypothesis testing. The framework is built upon three core pillars:

2.1 Piecewise-Regular Modeling

Objects are represented as sequences of "regular" segments. In the context of image recognition, these segments may be blocks of pixels or feature descriptors like Histograms of Oriented Gradients (HOG). The distribution of each segment is assumed to be of an exponential type.

2.2 Statistical Distance and Asymptotics

The similarity between a query and a model is measured using Kullback-Leibler (KL) divergence. A key theoretical contribution of this work is the application of the asymptotic properties of KL information. Specifically, the author leverages the fact that $2 \times$ the KL divergence is asymptotically $\chi^2$ (chi-squared) distributed. In high-dimensional feature spaces, this distribution can be effectively approximated by a Normal distribution.

Unlike tree-based searches, ML-DEM initiates the search with a single model and iteratively selects subsequent models based on calculated likelihoods. At each step:

  1. The distance to the current model is calculated.
  2. The joint density (likelihood) of distances to all previously checked models is estimated for every remaining class in the database.
  3. The next model to be evaluated is selected from the class with the highest estimated likelihood.

The search terminates once a model is found within a distance threshold corresponding to a target False Accept Rate (FAR).

3. Experimental Evaluation

The proposed method was evaluated using the FERET dataset, a standard benchmark for face recognition. The dataset included 1,432 frontal images for training and 1,288 images for testing, representing 994 individuals. Features were extracted using HOG descriptors on a $10 \times 10$ grid.

3.1 Performance Metrics

ML-DEM was compared against brute-force search, the baseline Directed Enumeration Method (DEM), and state-of-the-art ANN libraries, including FLANN (randomized kd-trees) and NonMetricSpaceLib (perm-sort).

  • Efficiency: ML-DEM achieved a speedup of 2.5x to 6.5x over brute-force search.
  • Comparative Advantage: The method was 1.2x to 2.5x faster than the heuristic methods provided by FLANN and NonMetricSpaceLib.
  • Accuracy: The accelerated search maintained high fidelity, with error rates within 0.5% of the exhaustive brute-force search.
  • Real-Time Capability: On a standard 4-core laptop, a parallelized implementation of ML-DEM processed face recognition tasks in approximately 6ms with 93% accuracy.

4. Discussion and Conclusion

The ML-DEM offers a robust alternative to geometric ANN methods by treating search as a prediction problem. Its reliance on likelihood rather than spatial partitioning makes it particularly effective for non-metric similarity measures and complex feature spaces where traditional kd-trees falter.

However, the method introduces a higher computational overhead per search step due to the complexity of the likelihood calculations. This overhead is most justifiable when the underlying similarity measure (e.g., HOG alignment) is itself computationally expensive. Future research will focus on optimizing these calculations, potentially through the use of "pivots" to reduce the number of likelihood updates required at each step, and extending the statistical derivation to other distance metrics such as Euclidean or Chi-squared distances.

Summary updated

BibTeX
@article{savchenko2016maximum,
  author = {Andrey V. Savchenko},
  title = {{Maximum Likelihood Directed Enumeration Method in Piecewise-Regular Object Recognition}},
  journal = {Pattern Recognition},
  year = {2016},
  doi = {10.1016/j.patcog.2016.08.015},
}
Figure