A new machine-learning algorithm is able to teach itself to smell within a few minutes of training. As it learns, the system builds an artificial network that mimics the brain’s olfactory system.