Optimizing Smart Homes with Data Science Insights