Abstract:The prediction models of diabetes mellitus has been built by taking random forest algorithm.The paper introduces data modeling, steps and methods of evaluation, selection criteria, and evaluates the predictive effect of the models using indicators of the area under curve of receiver operating characteristic curve, sensitivity, specificity, accuracy,etc. The result indicates that the random forest prediction model possesses a relative strong prediction ability as for diabetes mellitus.