AI powered smart grids