Classification of consumers in an ecosystem