Scientists have turned coffee waste into electricity for the first time, in research that could help farmers and curb pollution in the developing world. The coffee industry generates a huge amount of liquid waste during the process of turning the raw material of the tree – the coffee cherries – into the 9.5m tons of coffee the world produces each year.