Artificial intelligence in Industry 4.0