Amalgamating ML and IoT in Smart Home Devices