With the continuous development of educational informatization, students have produced a large amount of data in the process of learning and life. The educational management system with simple search and query function can not find the potential value behind large-scale data and can not meet the practical needs of teaching management. In view of the above problems, in order to mine useful information from student behavior data, this paper collected and arranged student behavior data and achievement data, constructed an index system to describe student behavior, clustered student behavior data with K-means clustering algorithm, and generated student behavior characteristic description data. Apriori algorithm was used for association mining of feature data sets. Based on the mining results, the association rules between students' behavior and grades were analyzed, which provides a reference for students' behavior guidance and teaching management.