In today’s society, the development of information technology is very rapid, and the transmission and sharing of information has become a development trend. The results of data analysis and research are gradually applied to various fields of social development, structured analysis, and research. Data mining of electronic medical records in the medical field is gradually valued by researchers and has become a major work in the medical field. In the course of clinical treatment, electronic medical records are edited, including all personal health and treatment information. This paper mainly introduces the research of diabetes risk data mining method based on electronic medical record analysis and intends to provide some ideas and directions for the research of diabetes risk data mining method. This paper proposes a research strategy of diabetes risk data mining method based on electronic medical record analysis, including data mining and classification rule mining based on electronic medical record analysis, which are used in the research experiment of diabetes risk data mining method based on electronic medical record analysis. The experimental results in this paper show that the average prediction accuracy of the decision tree is 91.21%, and the results of the training set and the test set are similar, indicating that there is no overfitting of the training set.