Cognitive analytics and IoT in the cloud