The application belongs to the technical field of computers and specifically discloses a
programming knowledge tracking method based on code prediction enhancement, which comprises the following steps: based on historical
programming questions and corresponding historical
programming answers, extracting embedded representations, obtaining historical question embedded representations and historical answer embedded representations; based on the historical question embedded representations, the historical answer embedded representations and the embedded representations of target programming questions, predicting the embedded representations of the
source code input by the measured object for the target programming questions through a multi-head attention mechanism model, and taking the predicted embedded representations of the
source code as programming answer prediction results; and based on the embedded representations of the target programming questions, the programming answer prediction results and the current
knowledge state of the measured object, predicting the answer
correctness probability of the measured object for the target programming questions, wherein the current
knowledge state is obtained by analyzing the
time sequence evolution of the
knowledge state based on the historical programming answers of the measured object. The application can accurately predict the programming performance of learners.