Advanced pattern recognition from complex environments: a classification-based approach