Skip to main content
. 2019 Jun 30;21(7):647. doi: 10.3390/e21070647
Algorithm 1 proposed HAG-MSF-CRFs algorithm
Input:Mtrain = {(In,Tn)}n=1m, Mtest.
where Mtrain is the data used for training model A, Mtest is the testing data, I is the input training image and T(i,j)∈ {1,2,3,4,5,6} is the ground truth data.
a: Face segmentation part:
Step a.1: Training a segmentation model A through training data (training images and labels)
Step a.2: Finding the center of each super-pixel, extracting patches and passing to the model A
Step a.3: Using the probabilistic classification method and creating probability maps for each class, represented as:
  pskin, pmouth, peyes, pnose, phair, and pback
b. Head pose, age and gender classification part:
  if head pose estimation:
  f=pskin + pmouth + peyes + pnose + phair
  Else if age classification:
  f=pskin + pmouth + peyes + pnose + phair
  Else if gender recognition:
  f=pskin + peyes + pnose + phair
where f is the feature vector.
c. Training an RDF classifier for each case (head pose, age and gender)
Output: estimated pose, age class and gender.