Optimising environmental efficiency with AI