How machine learning can be used to prevent factory machine breakdown