The role of artificial intelligence in smart home automation