AI is making green energy smarter