Artificial intelligence enables more efficient power grid