How Artificial Intelligence Improves Smart Home Efficiency