Abstract It is necessary for different learners demand for personalized learning contents in e-leaning environment. In this paper, the personalized learning system was constructed based on personalized knowledge structural graph (KSG) by the artificial intelligence, the data mining and the database technology. The system can dynamically assess the learning process to come out personalized KSG based on different learners. The optimal learning path (OLP) generator was designed and implemented based on personalized KSG through the topological sort algorithm, in order to provide learners personalized learning content and teaching methods. In addition, the system can also dig for the learning history data and gain the knowledge to improve personalized service decision-making rules and student model of the system. The experiments show that it greatly increases the efficiency of e-learning.