In recent years, more and more students have serious mental health problems in the face of the pressure of learning. In view of this situation, this paper collects big data information, conducts comprehensive analysis of the data, and takes corresponding measures to prevent psychological problems through big data, so as to prevent children's psychological problems and carry out timely one-to-one targeted teaching. The junior middle school students in a middle school were selected as the research objects, and the paper quality scale group of 2018 grade and the automatic scale group of 2019 grade were compared as the teaching comparison data. The enrollment age of the two groups of students is 11 to 14 years old, with an average age of 12.4 ± 0.5 years. In the 2019 grade, there are 312 students in 6 teaching classes, 158 boys and 154 girls. In the 2018 grade, there are 324 students in 6 teaching classes, 163 boys and 161 girls. The bivariate t-check method of SPSS analysis software was used to compare and analyze the data of students in two grades. It was found that t>10.000 and P<0.05, which was a credible statistic. The following three rules were found in the actual statistics. The actual evaluation value of most students is low, and the students with mental health problems are always among the few students in the class. The change range of individual students' mental health is greater than that of collective mental health. Observe the actual evaluation value data of student cases separately. The range of change is greater than the median range of change. Some time points are above the median and most of the time points are below the median. That is, under the premise that the overall mental health of students is basically unchanged, students with more prominent mental health problems may occur. After using computer aided big data analysis, its important function is highlighted in the actual teaching process, that is, in addition to knowing the SAS evaluation scores and SDS evaluation scores of students at any time, the computer aided psychological state evaluation index and the collective psychological state evaluation index of students are given. Teachers and schools can obtain more detailed data on students' mental health while teaching tests are being conducted, so as to provide more accurate one-to-one psychological education intervention programs. © 2024 U-turn Press LLC.