Scientists have uncovered how coffee influences the so-called gut-brain axis, the complex communication network linking the digestive system and the brain.