After all the posterior probabilities of each classification nodes in a particular sample X being annotated to each category have been calculated, the overall probability for input sample X to be annotated to a particular category, Ck is calculated (i.e. D(X,Ck)), which is shown in Eq 9.