It takes ten years to grow trees and a hundred years to nurture people. Education, as the most indispensable link in establishing morality and cultivating people, has a very important role in modern society. The study explores the application of ancient Chinese educational concepts to modern educational models, proposes a modernized teaching model based on ancient educational concepts, and uses the YOLO model to construct a classroom teaching expression and action recognition model under ancient educational concepts. The model is used in the actual classroom to analyze the expressions and behaviors of students in the classroom to explore their classroom concentration, which is used to analyze the quality of classroom teaching. By comparing the differences and changes in the performance of the experimental group and the control group, the effect of the modernized teaching model based on the ancient education concept on actual teaching is explored. Through the model test, the classroom students’ concentration score is 72.71. The pre-test P-value of the experimental group and the control group is 0.846, and the post-test P-value is 0.000, which indicates that there is a significant difference in the performance of the two groups after the experiment. The increase in the performance of the students in the experimental group was 31.390 points, while in the control group, it was 5.175 points. The P-values of the students in the experimental group on the five dimensions of math level are less than 0.05, and the control group is greater than 0.05, which indicates that the modernized teaching model based on the ancient concept of education has a significant positive effect on improving the performance of the students.