Predicting the activity of chemical compounds based on machine learning approaches