Internet of Things (IoT) applications generate vast amounts of real-time data. Temporal analysis of these data series to discover behavioural patterns may lead to qualified knowledge affecting a broad range of industries. Hence, the use of machine learning (ML) algorithms over IoT data has the potential to improve safety, economy, and performance in critical processes. However, creating ML workflows at scale is a challenging task that depends upon both production and specialized skills. Such tasks require investigation, understanding, selection, and implementation of specific ML workflows, which often lead to bottlenecks, production issues, and code management complexity and even then may not have a final desirable outcome. This paper proposes the Machine Learning Framework for IoT data (ML4IoT), which is designed to orchestrate ML workflows, particularly on large volumes of data series. The ML4IoT framework enables the implementation of several types of ML models, each one with a different workflow. These models can be easily configured and used through a simple pipeline. ML4IoT has been designed to use container-based components to enable training and deployment of various ML models in parallel. The results obtained suggest that the proposed framework can manage real-world IoT heterogeneous data by providing elasticity, robustness, and performance. INDEX TERMS Big data, container-based virtualization, IoT, machine learning, machine learning workflow, microservices. JOSÉ M. ALVES received the B.Sc. degree in information systems from USP, Brazil, in 2010. He is currently pursuing the M.E.Sc. degree in software engineering with Western University, Canada. From 2010 to 2017, he was involved in numerous software development and data analytics projects for telecommunications companies in Brazil. His current research interests include big data, machine learning, the IoT, and cloud computing.