next up previous
Next: 3 Continuous n-tuple classifiers Up: Face Recognition with the Previous: 1 Introduction

2 Standard n-tuple classifiers

 

In standard n-tuple classifiers [2, 1] the d-dimensional input space is sampled by m n-tuples. The range of each dimension in the general case is the alphabet tex2html_wrap_inline456 but most n-tuple methods reported in the literature are defined over a binary input space where tex2html_wrap_inline458 and tex2html_wrap_inline460 .

Each n-tuple defines a fixed set of locations in the input space. Let the set of locations defining the jth n-tuple be:

  equation24

where each tex2html_wrap_inline464 is chosen as a random integer in the specified range. This mapping is normally the same across all classes. For a given d-dimensional input pattern tex2html_wrap_inline468 an address tex2html_wrap_inline470 may be calculated for each n-tuple mapping tex2html_wrap_inline472 as shown in Equation 2.

  equation35

These addresses are used to access memory elements, where there is a memory tex2html_wrap_inline474 for each class c in the set of all classes C and n-tuple mapping tex2html_wrap_inline472 . We denote the value at location b in memory tex2html_wrap_inline474 as tex2html_wrap_inline486 . The set of all memory values for all the n-tuple mappings for a given class we denote tex2html_wrap_inline488 , the model for a given class. The size of the address space of each memory tex2html_wrap_inline474 is tex2html_wrap_inline492 . In standard n-tuple systems, each address location accesses a single bit of information. The complete algorithm for training a standard n-tuple classifier is given in Table 1, and the recognition algorithm is given in Table 2. X is the complete set of training patterns while the subset of patterns of class c is denoted as tex2html_wrap_inline498 and tex2html_wrap_inline500 is the ith pattern in the cth class.

 

Algorithm for training standard n-tuple classifier
Step 1: Initialise all n-tuples
For each class tex2html_wrap_inline506
    For each n-tuple tex2html_wrap_inline508
        For each address tex2html_wrap_inline510
             tex2html_wrap_inline512
Step 2: Train all n-tuples on all training patterns
For each class tex2html_wrap_inline506
    For each pattern tex2html_wrap_inline516
        For each tex2html_wrap_inline518
            Set Current Address tex2html_wrap_inline520
            Set tex2html_wrap_inline522
Table 1: Algorithm for training the standard n-tuple Classifier.  


 

Standard n-tuple recognition algorithm
Classifies image tex2html_wrap_inline524 in input array into class tex2html_wrap_inline506
Step 1: Initialise Recognition Vector
tex2html_wrap_inline528 is a |C|-dimensional vector of real numbers
For each class tex2html_wrap_inline506
    Set tex2html_wrap_inline534
Step 2: Look up memory contents of each n-tuple in each class
For j := 1 to m
    Set tex2html_wrap_inline538
    For each class tex2html_wrap_inline506
        Set tex2html_wrap_inline542
Step 3: Classification
Assign tex2html_wrap_inline524 to class c where tex2html_wrap_inline548
Table 2: Algorithm for performing pattern classification with the standard n-tuple classifier  


Training is performed by adjusting the values stored at each address for each pattern in each class, where all values are initially set to zero. When an address tex2html_wrap_inline470 is accessed by a pattern tex2html_wrap_inline524 of class c under mapping tex2html_wrap_inline472 then tex2html_wrap_inline558 is set to one.

For recognition the total output for each class is simply the sum of the outputs for each n-tuple in that class as shown in the fourth line of Step 2 in Table 2:

  equation101

and the pattern is assigned to the class with the highest total output.


next up previous
Next: 3 Continuous n-tuple classifiers Up: Face Recognition with the Previous: 1 Introduction

Adrian F Clark
Thu Jul 24 16:25:40 BST 1997