With the development of Internet applications, educational websites have been well developed. This means that more and more students acquire knowledge through the virtual classroom. The educational system will produce a large number of students' learning behavior data. It doesn't make sense if you just take student learning behavior data as pure data. We extract the students' learning behavior characteristics from these behavioral data, and then use the data mining algorithm to train the classifier. Then predict the final grades of the students. Warning students who have risk of failing the exam in time according to the prediction results, and according to the characteristics of importance analysis make guidance to their learning behavior.