Artificial networks learn to smell like the brain