Data mining refers to extracting the implicit prediction information from a massive dataset. It has very application prospects. Some data mining tools can develop things. The purpose of this article mainly discusses the public welfare sports education in the artificial intelligence era. The article discusses the research background and significance, development of education data mining, and decision tree technology and enumerates the application of education data mining in real life. The concept of educational data mining is given, and several common typical decision tree algorithms and their connections and differences are described; then, the concepts of multivalue decision tables and decision trees are discussed in detail. This article aims to build a nonprofit physical education system to manage and analyze the attendance data of students’ physical health assessment, so as to improve the enthusiasm of students to exercise, such as BP neural network, decision tree classification algorithm, and cluster analysis, discusses the calculation and analysis process of the relevant body side data of the sports teaching platform, and emphatically discusses and analyzes the application effect of data mining technology in public welfare sports teaching. In addition, this article has built a public welfare physical education system, allowing us to clearly understand various factors that affect students’ exercise and the relationship between various project indicators. Based on these data, educators can adjust technical means. Experimental results can efficiently and conveniently understand the pass rate of students in various sports. The pass rates of students in the six tests, grip strength, and sitting forward bending were 58%, 65%, 78%, 78%, 85%, and 65%, respectively. Using mathematical methods and computer technology, we can dig out valuable education management information from massive education data, so as to provide a reference for improving school enrollment.