Learning to hear the sounds and tones in Mandarin

As infants, we perceive the world without categories. Learning our first language forms sound categories, aiding understanding but losing other sound distinctions. As adults learning a second language, we need to regain this ability. But how?