Programming knowledge tracking method based on type perception and personalized answer sequence enhancement
By constructing knowledge graphs and using variational autoencoder models and other technical means, the problem of unassociated programming questions and knowledge point relationships and personalized mastering in programming knowledge tracking is solved, and more accurate programming knowledge tracking and personalized learning paths are achieved. formulated.
Patent Information
- Application Number
- CN202410699531.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing programming knowledge tracking models fail to effectively consider the overall relationship between different programming topics and knowledge points, as well as students' personalized knowledge mastery, resulting in inaccurate assessment.
Using methods based on type awareness and personalized answer sequence enhancement, by building a knowledge graph, using variational autoencoder models and LSTM models, and combining attention mechanisms and gating mechanisms, we extract personalized answer embeddings and learning ability parameters to predict students The probability of answering the next question correctly.
It improves the accuracy of programming knowledge tracking, reflects students' personalized knowledge mastery, enhances the relevance of knowledge point relationships, increases AUC by 9.03% on average, and supports personalized learning paths and teaching adjustments.
Smart Images

Figure CN118569369A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a programming knowledge tracking method based on type perception and personalized answer sequence enhancement. Background Art
[0002] With the continuous development of massive open online courses (MOOCs), a large amount of online learning data can be used to accurately and timely track students' learning status. Knowledge tracking is a data-driven method in the field of educational technology that uses a series of student interactions with exercises to predict their mastery of the concepts corresponding to these exercises. By accurately tracking learners' knowledge, accurate and targeted learning routes are constructed to provide strong support for subsequent exercise recommendations, intelligent guidance, and learning route planning. Nowadays, programming has become a basic skill for solving real-world problems in modern engineering disciplines. Although knowledge tracking in MOOC systems has been successful, there are relatively few studies on knowledge tracking in the field of programming, and there are also some differences from traditional knowledge tracking. Programming knowledge tracking is mainly based on subjective questions. Students usually answer questions by submitting code, and the evaluation system uses test data to judge the performance of students' code in different situations.
[0003] Programming knowledge tracking has the following main problems: (1) Exercises are not independent of each other, and the predecessor-successor relationship between knowledge points is very obvious. For example, after student S1 answered exercise P1 incorrectly, he continued to try exercise P4. Due to insufficient reserve of predecessor knowledge, he failed to answer the question correctly and timed out. However, after completing exercises P2 and P3 involving his predecessor knowledge points, he answered exercise P4 correctly. (2) Multiple answers reflect students' personalized knowledge mastery. For example, after student S2 answered exercise P2 correctly, he still made two failed attempts. This may be because the student submitted the question for testing purposes, and it cannot be considered that the student did not master the knowledge points involved. (3) For example, when three students faced exercise P1, students S1 and S2 answered correctly in only one attempt, but student S3 tried three times before answering correctly. Therefore, the mastery of knowledge points by S1 and S2 is obviously different from that of S3.
[0004] In summary, the current knowledge tracking model does not take into account students' overall performance on different questions and different knowledge points, generally does not take into account the overall relationship between different exercises and knowledge points, and also lacks consideration of students' personalized knowledge mastery. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a programming knowledge tracking method based on type perception and personalized answer sequence enhancement, so as to solve or partially solve the problem of not taking into account the overall relationship between different programming questions and knowledge points, and the poor consideration of the personalized knowledge mastery of the answerers.
[0006] The purpose of the present invention can be achieved by the following technical solutions:
[0007] According to one aspect of the present invention, a programming knowledge tracking method based on type awareness and personalized answer sequence enhancement is provided, comprising the following steps:
[0008] Construct a knowledge graph that includes multiple knowledge points and is divided according to knowledge types;
[0009] Based on the knowledge graph, programming question embedding is obtained by perceiving the knowledge type of the entity;
[0010] Based on the answer sequence of the answerer to the programming question, with the goal of minimizing the reconstruction error and KL divergence, a variational autoencoder model is used to extract personalized answer embedding;
[0011] Calculate the respondents' personalized learning ability parameters for programming questions based on item response theory;
[0012] Based on the programming question embedding, the answer sequence, the personalized answer embedding, the personalized learning ability parameter, and whether the answerer answered the programming question correctly, a learning state tensor is obtained by splicing;
[0013] The current learning state tensor and the knowledge state tensor at the previous moment are used as the input of the LSTM model based on the attention mechanism. The gating mechanism is used to predict the knowledge state tensor at the current moment to obtain the probability that the answerer will answer the next question correctly.
[0014] As a preferred technical solution, the construction process of the knowledge graph includes the following steps:
[0015] Obtain knowledge point information and classify it according to knowledge type to build a knowledge graph;
[0016] Based on the knowledge source, the basic knowledge in the programming field is determined, and for the corresponding knowledge points of different knowledge types, the predecessor relationship of the advanced knowledge points is obtained and marked and verified. By retrieving the predecessor and successor relationship of the knowledge points, the optimization of the knowledge graph is achieved.
[0017] As a preferred technical solution, the process of obtaining programming question embedding based on the knowledge graph by perceiving the knowledge type of the entity includes:
[0018] Using a type-aware knowledge graph embedding model to convert the knowledge graph into an embedding in the form of a triple, wherein the triple consists of a head entity-relation-tail entity;
[0019] Generate a programming question embedding based on the embedding in triple form according to at least one knowledge point corresponding to the programming question;
[0020] Based on the embedding in the form of triples, the closeness of entities and relations in the triples is calculated under the premise of taking into account the type-aware weights, and based on the closeness, negative samples are sampled by self-adversarial negative sampling, where the perception weights are calculated based on the knowledge types of the entities in the triples;
[0021] Based on the embedding in triple form obtained by negative sampling and the compactness, the type-aware knowledge graph embedding model is trained.
[0022] As a preferred technical solution, the use of the variational autoencoder model to extract personalized answer embedding is achieved by the following formula:
[0023]
[0024] y=Decoder(z t )
[0025] Among them, Encoder() and Decoder() represent variational autoencoder and decoder respectively. represents the answer sequence corresponding to programming question t, z t represents the personalized answer embedding, and y represents the output of the decoder.
[0026] As a preferred technical solution, the reconstruction error L recon The calculation is done using the following formula:
[0027]
[0028] Among them, N is the dimension of the answer sequence, Represents the i-th element of the answer sequence corresponding to programming question t, y i It means that the variational autoencoder is for Output.
[0029] As a preferred technical solution, the calculation of the personalized learning ability parameter of the respondent for programming questions based on item response theory is implemented by the following formula:
[0030]
[0031] in, is the personalized learning ability parameter of the respondent i corresponding to the programming question t, p i (θ) represents the correct answer rate of the respondent, b represents the difficulty parameter of the question, and d is the parameter.
[0032] As a preferred technical solution, based on the programming question embedding, the answer sequence, the personalized answer embedding, the personalized learning ability parameter, and whether the answerer answered the programming question correctly, the learning state tensor is obtained by splicing and implemented by the following formula:
[0033]
[0034] Among them, x t is the learning state tensor corresponding to programming problem t, e t 、z t , They represent programming question embedding, personalized answer embedding, and personalized learning ability parameters, respectively. t =1 means the respondent answered the question correctly, that is, passed all test cases, otherwise r t =0, Representative will t Extend to all 0 or all 1 vector.
[0035] As a preferred technical solution, the following formula is used to predict the knowledge state at the current moment based on the LSTM model and gating mechanism:
[0036] ks t =LSTM(ks t-1 ,x t )
[0037] ks out =g☉ks t +(1 D -g)☉ks t_his
[0038]
[0039] Among them, LSTM() represents the LSTM model, ks t-1 ,ks t 、x t They represent the knowledge state tensor of the answerer at time t-1, the knowledge state tensor output by the LSTM model at time t, and the learning state tensor at time t, respectively. g represents the learnable gating mechanism, and W t ,W hi represents the weight, b g represents the offset, ⊙ represents the corresponding multiplication of elements, ks out Represents the final knowledge state tensor at the current moment, 1 D Represents a vector of all 1s with dimension D.
[0040] As a preferred technical solution, the probability of the respondent answering the next question correctly is calculated using the following formula:
[0041]
[0042] in, represents the predicted probability that the respondent will answer the t+1th programming question correctly, W out represents the weight, b out Indicates the offset, Represents the programming problem embedding of the t+1th programming problem.
[0043] As a preferred technical solution, the following steps are also included:
[0044] Evaluate the effectiveness of practice and designate a practice plan based on the probability that the test taker will answer the next question correctly.
[0045] Compared with the prior art, the present invention has at least one of the following beneficial effects:
[0046] (1) Fully associate programming questions with knowledge points: The present invention constructs a knowledge graph that includes multiple knowledge points and is divided according to knowledge types, and can obtain an embedding vector representation containing rich semantic information and topological information on the graph. The programming question embedding is obtained by perceiving the knowledge type of the entity, perceiving the entity type, and constraining the embedding of the knowledge point. The obtained embedding vector can effectively associate the various knowledge points in the programming question.
[0047] (2) Ability to fully reflect the respondent's personalized knowledge mastery: The present invention uses a variational autoencoder (VAE) model to model the respondent's answer sequence in the same exercise, effectively reflecting the respondent's learning behavior. At the same time, the item response theory (IRT) is used to obtain students' learning ability differences, thereby mining students' learning behavior characteristics and learning ability characteristics. The LSTM model and attention mechanism are used, and a gating mechanism is introduced to weigh students' early and current knowledge status, thereby enhancing students' personalized answer sequence information and better reflecting students' personalized knowledge mastery.
[0048] (3) Accurate prediction of the respondent's answer behavior: The present invention creates data sets from two real programming platforms and conducts experiments. The results show that the model of the present invention outperforms the advanced models, with an average improvement of AUC by 9.03%, which improves the accuracy of programming knowledge tracking prediction. Ablation experiments are conducted to ensure the reliability and effectiveness of each part of the present invention.
[0049] (4) The training effect of the type-aware knowledge graph embedding model is good: the present invention first calculates the closeness of entities and relationships in triples under the premise of taking into account type-aware weights, and based on the closeness, realizes the sampling of negative samples by self-adversarial negative sampling. Then, based on the embedding and closeness of the triplet form obtained by negative sampling, the type-aware knowledge graph embedding model is trained. The sampling of negative samples and training are completed by adopting the self-adversarial negative sampling method, which ensures the effectiveness of training.
[0050] (5) Broad application prospects: By predicting the answer of the next question, it is possible to develop personalized learning paths, evaluate learning effects, recommend exercises, and track students' learning progress in detail, dynamically adjust teaching strategies, provide personalized learning resources, and improve learning motivation and participation. At the same time, teachers can adjust teaching plans in a timely manner based on the prediction results, and parents and guardians can better understand and support students' learning. The large amount of data collected also provides support for educational data analysis and research, discovering common problems and individual needs in education, and improving educational methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 It is a flowchart of a programming knowledge tracking method based on type awareness and personalized answer sequence enhancement in an embodiment;
[0052] Figure 2 Schematic diagram of the structure of the gating mechanism GRU in the embodiment. DETAILED DESCRIPTION
[0053] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0054] Example 1
[0055] In view of the problems existing in the above-mentioned prior art, this embodiment provides a programming knowledge tracking method based on type perception and personalized answer sequence enhancement, see Figure 1 , the method comprises the following steps:
[0056] Step S1, divide the data set obtained by the online programming platform, construct a knowledge graph according to the questions and knowledge points, and connect the knowledge points in the exercises (ie, programming questions). This step includes the following sub-steps.
[0057] Step S101, knowledge point acquisition: Based on the knowledge point information on the OI-Wiki website, the acquired knowledge points are classified, sorted and confirmed using the information on CSDN and Wikipedia. At the same time, the three authoritative textbooks "Data Structure Programming Practice", "Algorithm Competition Introduction Classic (2nd Edition)" and "Introduction to Algorithms" are used as verification basis, and finally a knowledge graph of 11 topics (i.e., entity knowledge types) and 204 knowledge points is obtained.
[0058] Regarding the selection of topics, this embodiment is divided according to Wikipedia, textbooks, etc. For example, arrays, linked lists, stacks, queues, etc. belong to data structure types, and binary search, depth-first search, and breadth-first search belong to search algorithm types.
[0059] Step S102, knowledge graph design: first, determine the introductory knowledge in the field of programming based on various knowledge sources; secondly, for knowledge points of different topics, determine the predecessor relationship of advanced knowledge points based on authoritative textbooks and the content of OI-Wiki, mark and verify them to reduce possible subjective errors, and finally retrieve the predecessor and successor relationship of knowledge points through Wikipedia to further optimize the knowledge graph.
[0060] Step S103, knowledge storage: After knowledge point acquisition and knowledge graph design, the nodes and relationships required by the knowledge graph have been obtained, and Neo4j is used for knowledge storage.
[0061] Step S2, using the type-aware knowledge graph embedding model (RotatE-TA) to extract the embedding of the knowledge graph, perceive the entity type (i.e., the knowledge type of the entity) during the embedding process, constrain the embedding of the knowledge point, and obtain the knowledge point node embedding and the topic embedding. The specific description of this step is as follows.
[0062] Define the predecessor knowledge point as the head entity h, the successor knowledge point as the tail entity t, and the relationship as r. These two knowledge points and the relationship are represented as a triple (h, r, t). Construct the triple score function as d r (h, t) is used to evaluate the importance of a candidate triple. The knowledge topic of all knowledge points in the knowledge graph is defined as T = {t1, t2, ... t m}, each knowledge point e i The knowledge subject (i.e., the knowledge type of the entity) is And each knowledge point belongs to only one knowledge topic. Define the types of two entities i and j as The comparison calculation of the two entity types is as follows:
[0063]
[0064] Based on this function, type-aware weights are introduced into the distance score function as follows:
[0065]
[0066] Where m is the number of knowledge points involved in the question, λ is the hyperparameter of the type-aware weight, and k is the dimension of the embedding vector.
[0067] The score function is used to measure the closeness between entities and relations in a triple (head entity, relation, tail entity). A high score means that the head entity and the tail entity are closely connected through the relation. During the model training process, more accurate entity and relation embedding representations can be learned. The loss function of the knowledge graph is combined with the score function to calculate the model error.
[0068] In the triplets of the entire knowledge graph, there are objectively existing real data, but only positive samples cannot complete the training of the model. In response to the above problems, negative sampling is performed on real triplets in this embodiment. Existing negative sampling methods generally use random sampling methods. Although they have the advantages of being simple and direct, as the training proceeds, many obviously irrelevant negative samples lack training significance, such as the negative sample "fast power-suffix array". These are two completely unrelated knowledge points. The significance of such negative samples for training is very limited. In response to the above problems, this embodiment uses a self-adversarial negative sampling method to complete the sampling of negative samples. The negative sampled triplets are no longer sampled according to a fixed probability, but depend on the current embedding model. The negative sampling method is as follows:
[0069]
[0070] In the formula, p represents the probability of negative sampling, exp represents an exponential function with the natural base e as the base, and to address the problem of high overhead of negative sampling, this probability is used as the weight of the negative sampling distance score. The loss function of the combined self-adversarial negative sampling method is:
[0071]
[0072] In the formula, γ represents the hyperparameter, σ represents the sigmoid activation function, and h i ′,t i ′ represents the head entity and tail entity of the i-th negative sampling sample.
[0073] After embedding the knowledge graph, the vector representation of the programming question can be obtained by adding the knowledge point embedding vectors, as shown below:
[0074]
[0075] Where m is the number of knowledge points involved in the question, h k is the knowledge point embedding vector, e t It is the final programming question vector, which can capture the semantic relationship of programming questions in the knowledge graph.
[0076] Step S3, use variational autoencoder (VAE) to model the student's continuous answer sequence for each programming exercise, and obtain the student's (i.e., the answerer) personalized answer state for each programming exercise. Use item response theory (IRT) to calculate the student's personalized learning ability on different questions. The above embedding vectors are spliced to obtain the learning state after the student's personalized answer sequence is enhanced. The detailed description of this step is as follows.
[0077] Step S301, using VAE to model the student answer sequence includes the following steps:
[0078]
[0079] y=Decoder(z t )
[0080] in is the student's answer sequence for programming question t, which is used as VAE input to learn and extract the hidden layer information z t As the result of the student's personalized answer, the modeling and tracking of the student's knowledge status can be achieved. The objective function of this process is as follows:
[0081]
[0082] L total =L recon +L KL
[0083] The objective function of VAE consists of a reconstruction error term and a KL divergence loss term, where N represents the dimension of the student's answer sequence. and i Represents the input samples and the decoder outputs the i-th element of y. D represents the latent variable z t The dimension, μ j and σ j Denote the latent variable z t The mean and standard deviation of the j-th dimension.
[0084] Step S302, obtaining the student's personalized learning ability includes the following steps:
[0085] The correct rate of students' answers is used as an indicator of their personalized learning ability, which is defined as the ratio of the number of correct answers given by students to the total number of questions they answered.
[0086] Get the difficulty parameter of each question in the dataset.
[0087] According to the first-order IRT formula:
[0088]
[0089] Inversely deduce the student's learning ability formula for each question:
[0090]
[0091] where p i (θ) represents the correct rate of students' answers to a question, that is, the ratio of the number of times a student answers the question to the total number of times the question is answered. θ represents the student's personalized learning ability, b represents the difficulty parameter of the question, and d is a constant of 1.702. That is the student's personalized ability parameter.
[0092] Step S303, the steps of splicing to obtain the enhanced learning state (i.e., learning state tensor) of the student's personalized answer sequence are as follows:
[0093]
[0094] Based on the cross-projection, we can distinguish whether the students answered the questions correctly or not. t =1 means that the student answered the question correctly, that is, passed all test cases; otherwise, r t = 0. Vector Representative will t Extend to all 0 or all 1 vector.
[0095] Step S4, the student's learning state and the knowledge state at the previous moment are jointly input into the long short-term memory network (LSTM) model, and the attention mechanism is used to obtain the student's current knowledge state. The gating mechanism is introduced to balance the student's historical and current knowledge states, obtain the final knowledge state, and then predict the student's answer to the next question. The detailed description of this step is as follows.
[0096] Step S401, the steps of inputting the joint vector into the LSTM model are as follows:
[0097] The personalized learning state sequence X = {x1, x2, x3, ..., x t}, then the present invention uses LSTM to complete the modeling of the student's knowledge state. The student's knowledge state ks at the current time t t (i.e., knowledge state tensor) is only equal to the knowledge state ks at the previous moment t-1 and the current learning state x t (i.e. learning state tensor) related to:
[0098] ks t =LSTM(ks t-1 ,x t )
[0099] The attention mechanism steps are shown in the following formula:
[0100] u i =tanh(W w ·ks i +b w )
[0101]
[0102] Among them, ks i First, it is input into a single-layer neural network, and then a softmax calculation is performed to obtain the importance coefficient α i , represents the weight matrix, Indicates bias, represents the weight vector.
[0103] Step S402, obtaining the final knowledge status of the student includes the following steps:
[0104] See also Figure 2 , the calculation of the gating mechanism is implemented using the following formula:
[0105]
[0106] ks out =g☉ks t +(1 D -g)☉ks t_his
[0107] Among them, g represents the learnable gating mechanism, W t ,W his represents the weight, b g represents offset, ⊙ represents element-by-element multiplication, ks out represents the student's final knowledge state, 1 D Represents a vector of all 1s with dimension D.
[0108] The formula for calculating the predicted probability of the next question is as follows:
[0109]
[0110] Where W out represents the weight matrix, b out is the bias, represents the predicted probability that the student will answer question t+1 correctly, y t+1 ∈(0,1) is the actual answer of the students.
[0111] Finally, we use the cross entropy to calculate y t+1 and Update the LSTM model with the loss value between:
[0112]
[0113] By predicting the probability that the answerer will answer the next question correctly, downstream tasks include developing personalized learning paths, evaluating learning outcomes, and recommending exercises.
[0114] Develop personalized learning paths to adjust learning content. If students have a low probability of answering the next question correctly, more exercises can be arranged to help students consolidate relevant knowledge points.
[0115] Evaluate learning outcomes by looking at changes in students' correct answer probabilities in different time periods to assess their learning progress and outcomes, and identify which knowledge points have been mastered and which require further study.
[0116] Exercise recommendations: recommend relevant learning resources and supplementary exercises to students to help them understand and master knowledge points.
[0117] This method obtains semantic information between knowledge points through knowledge graphs, and then uses VAE to unsupervised model the phenomenon of students' multiple answers from an individual perspective, while exploring students' personalized learning abilities to enhance students' personalized answer sequence information. Finally, the attention mechanism is introduced to extract important information, and the LSTM network and gating mechanism are combined to model the student answer sequence, ultimately resulting in a better prediction of the student's answer performance. Compared with the prior art, this method has the following beneficial effects:
[0118] (1) A knowledge graph in the programming field was constructed, which can intuitively reflect the predecessor and successor relationships between knowledge points. The RotatE-TA graph embedding method used can obtain an embedding vector representation containing rich semantic and topological information on the graph. In the embedding process, the entity type is perceived and the embedding of knowledge points is constrained. The obtained embedding vector can effectively connect the knowledge points in the exercises.
[0119] (2) We explored students’ learning behavior and learning ability characteristics, used the LSTM model and attention mechanism, and introduced a gating mechanism to weigh students’ early and current knowledge status, thereby enhancing students’ personalized answer sequence information and better reflecting students’ personalized knowledge mastery.
[0120] (3) We created datasets from two real programming platforms and conducted experiments. The results show that the model proposed by this method outperforms the most advanced model, improving the AUC by 9.03% on average and improving the accuracy of programming knowledge tracking prediction. We also conducted ablation experiments to ensure the reliability and effectiveness of each module in the present invention.
[0121] Example 2
[0122] This embodiment provides an electronic device, including: one or more processors and a memory, wherein the memory stores one or more programs, and the one or more programs include instructions for executing the programming knowledge tracking method based on type perception and personalized answer sequence enhancement as described in Example 1.
[0123] Example 3
[0124] This embodiment provides a computer-readable storage medium, including one or more programs for execution by one or more processors of an electronic device, wherein the one or more programs include instructions for executing the programming knowledge tracking method based on type awareness and personalized answer sequence enhancement as described in Example 1.
[0125] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A programming knowledge tracking method based on type awareness and personalized answer sequence enhancement, characterized in that: The steps include: Construct a knowledge graph that includes multiple knowledge points and is divided according to knowledge types; Based on the knowledge graph, programming question embedding is obtained by perceiving the knowledge type of the entity; Based on the answer sequence of the answerer to the programming question, with the goal of minimizing the reconstruction error and KL divergence, a variational autoencoder model is used to extract personalized answer embedding; Calculate the respondents' personalized learning ability parameters for programming questions based on item response theory; Based on the programming question embedding, the answer sequence, the personalized answer embedding, the personalized learning ability parameter, and whether the answerer answered the programming question correctly, a learning state tensor is obtained by splicing; The current learning state tensor and the knowledge state tensor at the previous moment are used as the input of the LSTM model based on the attention mechanism. The gating mechanism is used to predict the knowledge state tensor at the current moment to obtain the probability that the answerer will answer the next question correctly.
2. A programming knowledge tracking method based on type awareness and personalized answer sequence enhancement according to claim 1, characterized in that: The construction process of the knowledge graph includes the following steps: Obtain knowledge point information and classify it according to knowledge type to build a knowledge graph; Based on the knowledge source, the basic knowledge in the programming field is determined, and for the corresponding knowledge points of different knowledge types, the predecessor relationship of the advanced knowledge points is obtained and marked and verified. By retrieving the predecessor and successor relationship of the knowledge points, the optimization of the knowledge graph is achieved.
3. A programming knowledge tracking method based on type awareness and personalized answer sequence enhancement according to claim 1, characterized in that: The process of obtaining programming question embedding based on the knowledge graph by perceiving the knowledge type of the entity includes: Using a type-aware knowledge graph embedding model to convert the knowledge graph into an embedding in the form of a triple, wherein the triple consists of a head entity-relation-tail entity; Generate a programming question embedding based on the embedding in triple form according to at least one knowledge point corresponding to the programming question; Based on the embedding in the form of triples, the closeness of entities and relations in the triples is calculated under the premise of taking into account the type-aware weights, and based on the closeness, negative samples are sampled by self-adversarial negative sampling, where the perception weights are calculated based on the knowledge types of the entities in the triples; Based on the embedding in triple form obtained by negative sampling and the compactness, the type-aware knowledge graph embedding model is trained.
4. A programming knowledge tracking method based on type awareness and personalized answer sequence enhancement according to claim 1, characterized in that: The variational autoencoder model is used to extract personalized answer embeddings through the following formula: y=Decoder(z t ) Among them, Encoder() and Decoder() represent variational autoencoder and decoder respectively. represents the answer sequence corresponding to programming question t, z t represents the personalized answer embedding, and y represents the output of the decoder.
5. The programming knowledge tracking method based on type awareness and personalized answer sequence enhancement according to claim 1 is characterized in that: The reconstruction error L recon The calculation is done using the following formula: Among them, N is the dimension of the answer sequence, Represents the i-th element of the answer sequence corresponding to programming question t, y i It means that the variational autoencoder is for Output.
6. A programming knowledge tracking method based on type awareness and personalized answer sequence enhancement according to claim 1, characterized in that: The calculation of the personalized learning ability parameter of the respondent for programming questions based on the item response theory is implemented by the following formula: in, is the personalized learning ability parameter of the respondent i corresponding to the programming question t, p i (θ) represents the correct answer rate of the respondent, b represents the difficulty parameter of the question, and d is a constant.
7. The programming knowledge tracking method based on type awareness and personalized answer sequence enhancement according to claim 1 is characterized in that: Based on the programming question embedding, the answer sequence, the personalized answer embedding, the personalized learning ability parameter, and whether the answerer answered the programming question correctly, the learning state tensor is obtained by splicing and implemented by the following formula: Among them, x t is the learning state tensor corresponding to programming problem t, e t 、z t , They represent programming question embedding, personalized answer embedding, and personalized learning ability parameters, respectively. t =1 means the respondent answered the question correctly, that is, passed all test cases, otherwise r t =0, Representative will t Extend to all 0 or all 1 vector.
8. The programming knowledge tracking method based on type awareness and personalized answer sequence enhancement according to claim 1 is characterized in that: The following formula is used to predict the knowledge state at the current moment based on the LSTM model and gating mechanism: ks t =LSTM(ks t-1 ,x t ) ks out =g⊙ks t +(1 D -g)⊙ks t_hi Among them, LSTM() represents the LSTM model, ks t-1 ,ks t 、x t They represent the knowledge state tensor of the answerer at time t-1, the knowledge state tensor output by the LSTM model at time t, and the learning state tensor at time t, respectively. g represents the learnable gating mechanism, and W t ,W his represents the weight, b g represents offset, ⊙ represents element-by-element multiplication, ks out Represents the final knowledge state tensor at the current moment, 1 D Represents a vector of all 1s with dimension D.
9. The programming knowledge tracking method based on type awareness and personalized answer sequence enhancement according to claim 1 is characterized in that: The probability of the respondent answering the next question correctly is calculated using the following formula: in, represents the predicted probability that the respondent will answer the t+1th programming question correctly, W out represents the weight, b out Indicates the offset, Represents the programming problem embedding of the t+1th programming problem.
10. The programming knowledge tracking method based on type awareness and personalized answer sequence enhancement according to claim 1, characterized in that: The following steps are also included: Evaluate the effectiveness of practice and designate a practice plan based on the probability that the test taker will answer the next question correctly.
