Research Article

An Application of Classifier Combination Methods in Hand Gesture Recognition

Algorithm 4

The pseudocodes for DECORATE ensemble method.
● Input:
  β„’ : training set consisting of 𝑁 instances;
  𝒲 : base learner whose output is assumed to be a class probability distribution;
  𝐢 s i z e : desired ensemble size;
  𝐼 m a x : maximum number of iterations to construct an ensemble classifier;
  𝑅 s i z e : a factor to determine number of artificial instances to generate.
● Training phase
   – Initialization:
    Let 𝑖 = 1 and t r i a l s = 1 ;
    Provide the given training set β„’ as the input of base learner 𝒲 to get a classifier 𝐢 𝑖 ;
    Initialize ensemble set 𝐢 βˆ— = { 𝐢 𝑖 } ;
     – Compute ensemble error as
               1 πœ€ = 𝑁 𝑁 βˆ‘ 𝑖 = 1 𝐼 ( 𝐢 βˆ— ( 𝐱 𝑖 ) β‰  𝑦 𝑖 ) .     (3)
  – While 𝑖 < 𝐢 s i z e and t r i a l s < 𝐼 m a x
    (1) Generate ⌊ 𝑅 s i z e Γ— 𝑁 βŒ‹ training instances, β„› , according to the distribution of training data;
     (2) Label each instance in β„› with probabilities that each class label is selected
     being inversely proportional to those predicted by 𝐢 βˆ— ;
     (3) Combine β„’ with β„› to get a new training set β„’ β€² ;
     (4) Apply base learner 𝒲 to β„’ β€² to obtain a new classifier 𝐢 β€² ;
      (5) Add 𝐢 β€² to ensemble set 𝐢 βˆ— , namely, let 𝐢 βˆ— = 𝐢 βˆ— βˆͺ { 𝐢 β€² } ;
      (6) Based on the training set β„’ , compute the ensemble error of 𝐢 βˆ— , say, πœ€ β€² , as
     that done in equation (3);
      (7) If πœ€ β€² ≀ πœ€ , let 𝑖 = 𝑖 + 1 and update ensemble error as πœ€ = πœ€ β€² ; Otherwise,
    delete 𝐢 β€² from the ensemble set 𝐢 βˆ— , that is, 𝐢 βˆ— = 𝐢 βˆ— βˆ’ { 𝐢 β€² } ;
     (8) t r i a l s = t r i a l s + 1 ;
  – EndWhile
● Prediction phase
  – Let 𝑝 𝑖 , 𝑗 ( 𝐱 ) be the probability that 𝐱 comes from class 𝑗 supported by the classifier 𝐢 𝑖 .
  Calculate the confidence for each class by the mean combination rule, that is,
            𝑑 𝑗 1 ( 𝐱 ) = 𝐿 𝐿 βˆ‘ 𝑖 = 1 𝑝 𝑖 , 𝑗 ( 𝐱 ) , 𝑗 = 1 , 2 , … , 𝐽 ,   (4)
  where 𝐿 stands for the real ensemble size.
  – Assign 𝐱 to the class with the largest confidence.