The brain’s way of processing smells is inspiring scientists to rethink how we design machine learning algorithms.