The big names in the cloud computing industry like IBM Watson, Microsoft Azure, Amazon AWS and Google Cloud AI all have cloud services specifically tailored for Machine Learning AI or in cloud terminology MLaaS and the Internet of Things. Microsoft Azure and others support bidirectional communication with your IoT devices through a gateway and Azure IoT Hub natively supports communication over the MQTT, AMQP, and HTTPS protocols. Google Cloud IoT Core is a fully managed service and supports standard communications over MQTT and HTTPS protocols.
In their own words IBM® Watson™ IoT Platform is a foundational cloud offering that can connect and control IoT sensors, appliances, homes, and industries. IBM Watson™ IoT Platform supports any content that is permitted by the MQ Telemetry Transport (MQTT) standard.
The enabling technologies in the cloud make it a lot easier to deploy and analyse IoT sensor/device data. Amazon also offers numerous options for deploying and managing IoT devices and analysis of data. AWS IoT enables bi-directional communication between Internet of Things (such as sensors, actuators, embedded devices, or smart appliances) and the AWS Cloud over MQTT and HTTP.