Automatic Rule Generation Using Supervised Machine Learning