It is thought to be an effective technique to handle the problem of educational data explosion and lack of information by identifying potential relationships between data and directing decision-makers through the extraction, transformation, analysis, and modeling of educational data. Based on this, this research constructs a data analysis model for education evaluation using the K-means clustering technique in DM. The weight of each index of students’ comprehensive quality is calculated using AHP, and the value of the weight is used to determine whether the index is the important feature of analysis system mining. Improved sampling technology is used to deal with the representation of large-scale data sets; a sample partition clustering technique is proposed as a general framework. The best accuracy of this method, according to experimental data, is 95.6 percent, which is 12.1 percent greater than Mi cluster algorithm and 6.8 percent higher than DRCluster algorithm. The K-means clustering analysis technology is used to analyze students’ comprehensive evaluation data in this paper, with the goal of determining the regularity of data implication, accurately diagnosing learning problems, and providing the foundation for developing effective student management strategies.