Active pattern-learning, e.g. online learning of image or video features {based on specific statistical tests}