AI Paves the Way for a Sustainable Energy Future