Machine learning methods are widely used in predicting diabetes, and they get preferable results. Decision tree is one of popular machine learning methods in medical field , which has grateful classification power. Random forest generates many decision trees.