How artificial intelligence can help reduce carbon footprint