In machine learning, intelligent machines acquire new knowledge from experience through an artificial system. This artificial system is usually a computer with appropriate software. With the help of algorithms, the system analyzes desired goals and anomalies, enabling it to change and optimize processes autonomously and quickly. Networked machines can either gain experience themselves or learn from other networked devices. Machine learning in the cloud or in a swarm is ideal, especially for highly flexible process structures such as the Industry 4.0 environment in production, to autonomously adapt production processes to the respective conditions almost in real time.