This paper attempts to test and analyze students' mental health status through the reform of physical education curriculum setting mode, reveal the changes and characteristics of individual mental health status, and then promote reasonable and effective physical education reform and the integration of psychological education. Furthermore, this article investigates people's mental health using the Apriori algorithm and the BP algorithm, and accurately presents the current condition using data graphs and other approaches, and its accuracy has grown by 20.32%. It also concludes that we should pursue the aims of social adaption and mental health, as well as support improved implementation of the new physical education curriculum. Physical education instruction must be engaging, but it cannot be done in isolation from sports and practice. As part of the new curriculum reform, physical education should be linked with psychological education.