How machine learning is applied in industrial IoT