Researchers have tracked 4,000 years of human influence on the planet – all from long tubes of mud.