An Effective Strategy to Reduce the Labeling Cost in the Definition of Training Sets by Active Learning