Evolutionary learning for relaxation labeling processes