Using artificial intelligence algorithms to predict electricity consumption patterns to manage peak hours