Artificial intelligence software is being used to predict electricity demand and supply.