Apply machine learning algorithms