School learners are the future of the motherland and the hope of the nation, and the level of mental health of school learners directly affects the achievement of moral education and the realization of the goal of moral education. The requirement of cultivating “self-esteem and self-confidence, rational and calm, and positive social mentality” provides guidance for the construction of mind fitness educating courses for school learners. At present, the research on the portrait technology for students in colleges and universities has been carried out one after another, and through the data mining of the informationized campus, the applications such as early warning of students' academic situation, dynamic detection of students' thoughts, and improvement of library lending service have been realized to better promote the management and service of students. The system can help students and teachers to make the mental health portrait model. This system can help students and teachers to analyze students' mental health problems more visually and improve the efficiency.