The emergence of a concept in shallow neural networks