Knowledge tracking method and system based on multi-graph
Through multi-graph structure and deep learning model, combined with forgetting gate control mechanism and hypergraph convolution network, it solves the problem that existing technology cannot reflect students' personalized differences, achieves more accurate knowledge tracking and answer prediction, and provides teachers with accurate Teaching support.
Patent Information
- Application Number
- CN202410772457.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-17
AI Technical Summary
The current graph-based knowledge tracking method cannot effectively reflect the personalized differences in different students' styles, and the generated graph structure cannot reflect the high-order correlation of sequence attributes and students' forgotten information.
Using a multi-graph-based knowledge tracking method, a heterogeneous information graph is generated by obtaining students' question sequences and concept sequences, and node features are extracted using improved graph convolutional neural networks and forgetting gating mechanisms; at the same time, directed multiple graphs of concepts and answers are generated. Directed multigraphs of questions and answers combine dual-channel models and fully connected neural networks to further extract student knowledge status information; finally, the hypergraph convolutional network is used to learn high-order semantic information in the hypergraph to generate predictions for the correct answer to the next exercise question. Probability.
It achieves a more accurate and comprehensive prediction of students' answer questions, can provide teachers with accurate teaching data support, and improves the personalization and accuracy of knowledge tracking.
Smart Images

Figure CN118364904B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a multi-graph-based knowledge tracking method and system. Background Art
[0002] With the rapid development of artificial intelligence technology, its application practice in the field of intelligent education and learning has shown exponential growth.
[0003] The huge amount of learning data in online education systems can provide a basis for personalized modeling of the knowledge status of each student, which leads to the basic task of knowledge tracing (KT), which uses a large number of student interaction sequences to predict the students' mastery of the corresponding concepts of the exercises. Specifically, knowledge tracing solves the problem of predicting whether students can correctly answer the next exercise related to a certain concept based on the learning interactions between students. At present, the analysis results of knowledge tracing have been widely used in various intelligent tutoring systems (ITS) and computer-supported education environments.
[0004] Research shows that existing knowledge tracking methods mostly rely on long sequence inputs of concepts, questions, and answers to capture hidden information between exercises and students. However, in fact, each long sequence is not independent of each other, and there are high-order correlations between different sequences and within the sequences. In addition, most knowledge tracking methods simply use recurrent neural networks and attention mechanisms to simply process and fuse long sequences. Since a single problem element in a student's learning trajectory is only highly correlated with a few concept elements, the representation sequence obtained after the recurrent neural network and attention mechanism is usually sparse, which will lead to the loss of potential features such as students' cognition of problems and mastery of concepts contained in the learning trajectory. Therefore, completing knowledge tracking based on graphs can better reflect the integrity and concreteness of students' knowledge structure.
[0005] However, the current graph-based knowledge tracking methods ignore the actual transcendental relationships (that is, a concept may be associated with more than two questions, but the edges contained in the generated graph can only connect two nodes). The generated graph structure is difficult to reflect the high-order correlation of sequence attributes and student forgetting information, and cannot reflect the personalized differences in the styles of different students. Summary of the invention
[0006] The main purpose of the present invention is to provide a multi-graph-based knowledge tracking method and system, aiming to solve the problem that the current graph-based knowledge tracking method cannot reflect the personalized differences of different students' styles.
[0007] In a first aspect, the present invention provides a multi-graph-based knowledge tracking method, comprising:
[0008] Obtain the question sequences and concept sequences of different students and generate heterogeneous information graphs;
[0009] Inputting the heterogeneous information graph into a preset improved graph convolutional neural network, and outputting first feature information, wherein the improved graph convolutional neural network is a network model generated by using a graph convolutional neural network and a forget gating mechanism;
[0010] Obtain answer sequences of different students, generate a directed multigraph of concepts and answers according to the concept sequence and the answer sequence, and generate a directed multigraph of questions and answers according to the question sequence and the answer sequence;
[0011] Inputting the concept-answer directed multigraph and the question-answer directed multigraph into a preset dual-channel model, and outputting second feature information, wherein the dual-channel model is a network model generated by using a fully connected layer, a graph communication layer, and a gated recurrent unit;
[0012] Obtain the prior relationship between questions and concepts and the prior relationship between questions and answers, and generate a hypergraph;
[0013] Inputting the hypergraph into a preset hypergraph convolutional network, and outputting third feature information, wherein the hypergraph convolutional network is a network model generated by using a long short-term memory network and an attention mechanism;
[0014] The first feature information, the second feature information and the third feature information are input into a fully connected neural network to predict the probability of a correct answer to the next question.
[0015] Preferably, the step of inputting the heterogeneous information graph into a preset improved graph convolutional neural network and outputting the first feature information comprises:
[0016] Determine a current node from the heterogeneous information graph, extract multiple neighboring nodes of the current node through the forget gating mechanism for calculation, and assign forgetting information to the current node;
[0017] Aggregating information of the current node with other nodes to obtain aggregated information of the current node;
[0018] Perform node information update according to the aggregation information and forgetting information of the current node;
[0019] The updated information of all nodes is concatenated to obtain the first feature information.
[0020] Preferably, the forgotten information of the current node is:
[0021] Formula (1) ,
[0022] In formula (1), is the forget information obtained by the current node through the forget gating mechanism. , They are respectively used to improve the trainable weights and biases of graph convolutional neural networks. For the neighboring nodes, is the total number of adjacent nodes, is the activation function;
[0023] The updated information of the current node is:
[0024] Formula (2) ,
[0025] In formula (2), The updated information of the current node. The information before the current node is updated. It is element-wise addition.
[0026] Preferably, the step of inputting the concept-answer directed multigraph and the question-answer directed multigraph into a preset dual-channel model and outputting the second feature information comprises:
[0027] Performing vector conversion on the concept-answer directed multigraph and the question-answer directed multigraph through a fully connected layer to obtain corresponding directed graph feature vectors;
[0028] Aggregating the directed graph feature vectors corresponding to the concept-answer directed multigraph and the question-answer directed multigraph through the graph communication layer to obtain an aggregation result;
[0029] Extracting information from the aggregation results through a gated recurrent unit to obtain student knowledge status information;
[0030] All the student knowledge status information is concatenated to obtain the second feature information.
[0031] Preferably, the information extraction process of the gated recurrent unit is:
[0032] Formula (3) ,
[0033] Formula (4) ,
[0034] Formula (5) ,
[0035] Formula (6) ,
[0036] In formulas (5)-(6), The update gate for transmitting information, is the sigmoid function, , , and , , is the trainable weight matrix of the gated recurrent unit, A reset gate that determines the degree of information forgetting. is the current memory state, is the final memory state in the network structure, Represents element-wise multiplication.
[0037] Preferably, the obtaining of the prior relationship between the question and the concept and the prior relationship between the question and the answer to generate a hypergraph includes:
[0038] By using the prior relationship between questions and concepts and the prior relationship between questions and answers, questions that examine the same concept are identified as nodes in the hypergraph, and the concepts included in the questions are identified as hyperedges.
[0039] Hyperedges are connected through shared problem nodes in concepts to form a hypergraph.
[0040] Preferably, the step of inputting the hypergraph into a preset hypergraph convolutional network and outputting the third feature information comprises:
[0041] The hypergraph convolution is performed through the long short-term memory network, and the hypergraph convolution process is:
[0042] Formula (7) ,
[0043] In formula (7), is the node degree, is the super edge, is the input layer of the hypergraph convolution, is the output layer of the hypergraph convolution, are the trainable parameters of the LSTM network, is the incidence matrix of the hypergraph, is the transposed matrix of the incidence matrix, is a long short-term memory network;
[0044] The hyperedge after the hypergraph convolution is scored by the attention mechanism, and the third feature information is obtained according to the attention score result of the hyperedge; the scoring process of the attention mechanism is:
[0045] Formula (8) ,
[0046] Formula (9) ,
[0047] In formula (8) and (9), , , is the trainable weight matrix of the attention mechanism, is the attention weight, yes , , The matrix dimensions are It is the result of hypergraph convolution after attention scoring.
[0048] Preferably, inputting the first feature information, the second feature information and the third feature information into a fully connected neural network to predict the probability of a correct answer to the next question comprises:
[0049] Obtain a fully connected neural network, wherein the fully connected neural network comprises a fully connected layer and a nonlinear activation layer;
[0050] The first feature information, the second feature information and the third feature information are processed by the fully connected layer and the nonlinear activation layer to obtain a probability of a correct answer to the next question.
[0051] Preferably, the processing process of the fully connected neural network is:
[0052] Formula (10) ,
[0053] Formula (11) ,
[0054] Formula (12) ,
[0055] In formulas (10)-(12), , , , are the trainable parameters of the fully connected neural network, is the Tanh function, is the second characteristic information, is the first feature information, is the third feature information, Sigmoid and Softmax are nonlinear functions, is the concatenation function.
[0056] In a second aspect, the present invention further provides a multi-graph-based knowledge tracking system, comprising:
[0057] Heterogeneous graph generation module, used to obtain question sequences and concept sequences of different students and generate heterogeneous information graphs;
[0058] A heterogeneous graph processing module, used for inputting the heterogeneous information graph into a preset improved graph convolutional neural network, and outputting first feature information, wherein the improved graph convolutional neural network is a network model generated by using a graph convolutional neural network and a forget gating mechanism;
[0059] A directed graph generation module, used for obtaining answer sequences of different students, generating a directed multigraph of concepts and answers according to the concept sequence and the answer sequence, and generating a directed multigraph of questions and answers according to the question sequence and the answer sequence;
[0060] a directed graph processing module, used for inputting the concept-answer directed multigraph and the question-answer directed multigraph into a preset dual-channel model, and outputting second feature information, wherein the dual-channel model is a network model generated by using a fully connected layer, a graph communication layer and a gated recurrent unit;
[0061] A hypergraph generation module is used to obtain the prior relationship between questions and concepts and the prior relationship between questions and answers, and generate a hypergraph;
[0062] A hypergraph processing module, used for inputting the hypergraph into a preset hypergraph convolutional network, and outputting third feature information, wherein the hypergraph convolutional network is a network model generated by using a long short-term memory network and an attention mechanism;
[0063] The answer prediction module is used to input the first feature information, the second feature information and the third feature information into a fully connected neural network to predict the probability of a correct answer to the next question.
[0064] The above multi-graph-based knowledge tracking method and system have the following beneficial effects:
[0065] In summary, the multi-graph-based knowledge tracing method of the embodiment of the present invention has the following beneficial effects:
[0066] 1) The present invention adds a forget gating mechanism to the graph convolutional network, and performs additional forgetting processing on each layer of nodes by improving the graph convolutional neural network, so that the forgetting information is fully integrated with the knowledge state information of the node.
[0067] 2) The present invention uses a dual-channel model based on a graph communication layer and a gated recurrent unit to jointly characterize the students' knowledge status by utilizing the correlation and directionality between questions and answers, and between concepts and answers.
[0068] 3) The present invention uses a hypergraph convolutional network based on long short-term memory network and attention mechanism to learn high-order semantic information and transcendental relationships in the hypergraph, and improve the sensitivity of the convolutional network to node differences.
[0069] 4) The multi-graph-based knowledge tracking method provided by the present invention has better performance, that is, the multi-graph-based knowledge tracking method provided by the present invention can predict students' answers more accurately and comprehensively, and can provide data support for teachers' precise teaching. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 It is a flowchart of a multi-graph-based knowledge tracking method in one embodiment of the present invention;
[0071] Figure 2 It is a schematic diagram of the architecture of the multi-graph-based knowledge tracking method of the present invention;
[0072] Figure 3 It is a detailed flow chart of step S50 of the multi-graph-based knowledge tracing method in one embodiment of the present invention;
[0073] Figure 4 It is a structural diagram of the multi-graph-based knowledge tracking system of the present invention. DETAILED DESCRIPTION
[0074] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0075] Reference Figure 1 and Figure 2 An embodiment of the present invention provides a multi-graph-based knowledge tracking method, which specifically includes the following steps:
[0076] Step S10, obtaining question sequences and concept sequences of different students and generating a heterogeneous information graph.
[0077] In step S10, the question sequence refers to a long sequence of questions involved in relevant exercises in the history teaching process.
[0078] The concept sequence refers to a long sequence of concepts involved in relevant exercises in the process of history teaching.
[0079] The heterogeneous information graph refers to a graph with more than one node type or relationship type. The graph can be defined as ,in, Represents a collection of nodes. Represents edge set, node set Contains student identity, question sequence and concept sequence, and the relationship between the three is the edge set Optionally, the student identity includes a student ID, a student number, etc.
[0080] Specifically, firstly, the student history sequence is obtained from the system database, which includes several question sequences, concept sequences and answer sequences in the student's historical learning process. Then, the question sequence and concept sequence are obtained from the student history sequence, and after being associated with the student identity, a heterogeneous information graph is generated.
[0081] Step S20: input the heterogeneous information graph into a preset improved graph convolutional neural network, and output first feature information, wherein the improved graph convolutional neural network is a network model generated by using a graph convolutional neural network and a forgetting gating mechanism.
[0082] In step S20, the first feature information refers to the node information after the forgetting process of each node in the heterogeneous information graph is fully integrated with the knowledge state information.
[0083] For the traditional graph convolutional neural network, it includes an input layer, a hidden layer and an output layer. The input layer is used to divide all nodes in the heterogeneous information graph into multiple layers as input, the hidden layer is used to update the feature information of each layer of nodes, and the output layer is used to output the updated nodes.
[0084] The improved graph convolutional neural network in this embodiment adds a forgetting gating mechanism to the graph convolutional neural network, performs forgetting processing on each node in the heterogeneous information graph, and fuses the information of the neighboring nodes of the current node with the node itself to update the feature information of the current node.
[0085] Preferably, in step S20, the heterogeneous information graph is input into a preset improved graph convolutional neural network to output the first feature information, which specifically includes the following steps:
[0086] Step S201, determining a current node from the heterogeneous information graph, extracting multiple neighboring nodes of the current node through the forgetting gating mechanism for calculation, and assigning forgetting information to the current node.
[0087] In step S201, for any node of the heterogeneous information graph, the node is taken as the current node, and then multiple neighbor nodes of the current node are randomly selected for calculation through the forgetfulness gating mechanism, and forgetfulness information is assigned to the current node according to the calculation result. Optionally, the multiple neighbor nodes are three neighbor nodes, in which case the forgetfulness information of the current node can be expressed as:
[0088] Formula (1) ,
[0089] In formula (1), is the forget information obtained by the current node through the forget gating mechanism. , They are respectively used to improve the trainable weights and biases of graph convolutional neural networks. For the neighboring nodes, is the total number of adjacent nodes, is the activation function.
[0090] Step S202: Aggregate information of the current node with other nodes to obtain aggregate information of the current node.
[0091] In step S202, the information of the current node and the information of the neighboring nodes of the current node may be aggregated to obtain the aggregated information of the current node, and the aggregated information may be used as the information before the node is updated.
[0092] Step S203: performing node information update according to the aggregation information and forgotten information of the current node.
[0093] In step S203, the aggregation information and the forgotten information of the current node are added element by element, and then input into the hyperbolic tangent function Perform activation operation to obtain the updated information of the current node, which can be expressed as:
[0094] Formula (2) ,
[0095] In formula (2), The updated information of the current node. The information before the current node is updated. It is element-wise addition.
[0096] Step S204: concatenate the updated information of all nodes to obtain the first feature information.
[0097] That is, through the above steps S201 to S203, the updated information of each node in the heterogeneous information graph can be obtained. At this time, through the splicing function After concatenating the updated information of all nodes, the first feature information can be obtained. The first feature information is the output feature of the improved graph convolutional neural network, which can be expressed as:
[0098] Formula (3) ,
[0099] In formula (3), is the first feature information, is any node information after update, , The number of questions answered for the student.
[0100] Step S30, obtaining answer sequences of different students, generating a directed multigraph of concepts and answers according to the concept sequence and the answer sequence, and generating a directed multigraph of questions and answers according to the question sequence and the answer sequence.
[0101] In step S30, after obtaining several answer sequences from the student history sequence and associating them with the student identity, first create a first thread and a second thread, then execute the first thread to generate a directed connection focusing on probability and answer, and obtain a directed multigraph of concept and answer. At the same time, execute the second thread to generate a directed connection focusing on question and answer, and obtain a directed multigraph of question and answer. Optionally, the directed multigraph of concept and answer is obtained by element-by-element addition of concept embedding and answer embedding, which can be expressed as:
[0102] Formula (4) ,
[0103] The question and answer directed multigraph is obtained by adding the question embedding and the answer embedding element by element, which can be expressed as:
[0104] Formula (5) ,
[0105] In formula (4) and (5), For concept embedding, For problem embedding, Embed for answer.
[0106] Step S40, inputting the concept-answer directed multigraph and the question-answer directed multigraph into a preset dual-channel model, and outputting second feature information, wherein the dual-channel model is a network model generated by using a fully connected layer, a graph exchange layer and a gated recurrent unit.
[0107] In step S40, the dual-channel model includes two fully connected layers, a graph communication layer and a gated recurrent unit that are connected in sequence.
[0108] The second feature information refers to the knowledge state information of the student node that is jointly characterized by utilizing the correlation and directionality between concepts and answers and between questions and answers.
[0109] Preferably, in step S40, the concept-answer directed multigraph and the question-answer directed multigraph are input into a preset dual-channel model to output the second feature information, which specifically includes the following steps:
[0110] Step S401, performing vector conversion on the concept-answer directed multigraph and the question-answer directed multigraph through a fully connected layer to obtain corresponding directed graph feature vectors.
[0111] In step S401, the concept and answer are directed multigraphs and Questions and Answers Directed Multigraph After entering the dual-channel model, the concept and answer are directed multigraphs through the first fully connected layer. Convert to the first directed graph feature vector , which can be expressed as:
[0112] Formula (6) ,
[0113] In formula (6), , is the trainable weight matrix and bias of the first fully connected layer, is the first directed graph eigenvector.
[0114] Secondly, the second fully connected layer connects the question and answer into a directed multigraph Convert to the second directed graph feature vector , which can be expressed as:
[0115] Formula (7) ,
[0116] In formula (7), , is the trainable weight matrix and bias of the second fully connected layer, is the second directed graph eigenvector.
[0117] Step S402, aggregating the directed graph feature vectors corresponding to the concept-answer directed multigraph and the question-answer directed multigraph through a graph communication layer to obtain an aggregation result.
[0118] In step S402, the aggregation process of the graph communication layer may include: firstly obtaining the aggregation sub-result between two directed multigraphs and the aggregation sub-result between two directed graph feature vectors through an aggregation function, and then adding the two aggregation sub-results element by element to obtain the aggregation result output by the graph communication layer, which can be expressed as:
[0119] Formula (8) ,
[0120] In formula (8), is the aggregation result output by the graph communication layer. is a concatenation operation or concatenation function.
[0121] It can be understood that this embodiment utilizes the graph communication layer to fuse the concept and answer directed multigraph and the question and answer directed multigraph, which can ensure the integrity of the student's knowledge system.
[0122] Step S403, extracting information from the aggregation result through a gated recurrent unit to obtain student knowledge status information.
[0123] In step S403, the gated recurrent unit first uses the aggregation result, the previous memory state and the trainable weight matrix to perform update gate calculation, reset gate calculation and output gate calculation, and then uses the update gate, reset gate and output gate to update the current memory state to obtain the final memory state, which represents the student knowledge state information. Preferably, the information extraction process of the gated recurrent unit can be expressed as:
[0124] Formula (9) ,
[0125] Formula (10) ,
[0126] Formula (11) ,
[0127] Formula (12) ,
[0128] In formulas (9)-(12), The update gate for transmitting information, is the sigmoid function, , , and , , is the trainable weight matrix of the gated recurrent unit, A reset gate that determines the degree of information forgetting. is the current memory state, is the final memory state in the network structure, Represents element-wise multiplication.
[0129] Step S404: concatenate all the student knowledge status information to obtain second feature information.
[0130] That is, through the above steps S401 to S403, the knowledge status information of each student can be obtained. At this time, by concatenating the function By concatenating the knowledge status information of all students, the second feature information can be obtained. The second feature information is the output feature of the dual-channel model and can be expressed as:
[0131] Formula (13) ,
[0132] In formula (13), is the second characteristic information, For the Student knowledge status information, , is the total number of students.
[0133] Step S50, obtaining the prior relationship between the question and the concept and the prior relationship between the question and the answer, and generating a hypergraph.
[0134] In step S50, the prior relationship between the question and the concept refers to the corresponding probability contained in each question, and the prior relationship between the question and the answer refers to whether the result of the answer to the question is correct or not.
[0135] As a preference, Figure 3 As shown, the step S50 specifically includes the following steps:
[0136] Step S501, using the prior relationship between questions and concepts and the prior relationship between questions and answers, questions that examine the same concept are determined as nodes in a hypergraph, and the concepts included in the questions are determined as hyperedges;
[0137] Step S502, connecting hyperedges through shared problem nodes in concepts to form a hypergraph.
[0138] It can be understood that this embodiment first determines the nodes and hyperedges of the hypergraph to be generated through the prior relationship between the question and the probability and answer. Then each concept can contain multiple question nodes, and the correctness and incorrectness of the answers further refine the concept hyperedges into hyperedges of correct answers and hyperedges of incorrect answers. Finally, different types of hyperedges are connected through the shared question nodes in the concepts to form a hypergraph.
[0139] More specifically, the hypergraph formed in this embodiment is an extension of a simple graph and can be expressed as ,in, is a node set, represents a hyperedge set. In a hypergraph In the example, a hyperedge can connect more than two nodes at the same time, and the hypergraph is related to an association matrix Related, correlation matrix The size is Node set. Understandable, if the hyperedge ( ) contains nodes ( ), then the hyperedge and nodes In the correlation matrix The corresponding element in , its value is the original value plus one, if the hyperedge Does not contain nodes , then the element The value of remains unchanged. At this time, the diagonal node degree matrix of the hypergraph and the diagonal hyperedge degree matrix is defined as follows:
[0140] Formula (14) ,
[0141] Formula (15) ,
[0142] In formula (14) and (15), is the number of hyperedges, is the number of nodes, is a diagonal weight matrix.
[0143] Step S60, inputting the hypergraph into a preset hypergraph convolutional network, and outputting third feature information, wherein the hypergraph convolutional network is a network model generated by using a long short-term memory network and an attention mechanism.
[0144] In step S60, the third feature information refers to personalized feature information of different nodes obtained by learning high-order semantic information and transcending pair relationships in the hypergraph.
[0145] Preferably, in step S60, inputting the hypergraph into a preset hypergraph convolutional network, and outputting the third feature information specifically comprises the following steps:
[0146] First, a hypergraph convolution is performed through the long short-term memory network, and the hypergraph convolution process is:
[0147] Formula (16) ,
[0148] In formula (16), is the node degree, is the hyperedge degree, both are diagonal matrices, is the input layer of the hypergraph convolution, is the output layer of the hypergraph convolution, are the trainable parameters of the LSTM network, is the incidence matrix of the hypergraph, is the transposed matrix of the incidence matrix, For the long short-term memory network. Understandable, the input layer of the hypergraph convolution and output layer All of them are feature-adjacent, that is, the results calculated by formula (16).
[0149] Then, the hyperedge after the hypergraph convolution is scored by the attention mechanism, and the third feature information is obtained according to the attention score result of the hyperedge. The scoring process of the attention mechanism is as follows:
[0150] Formula (17) ,
[0151] Formula (18) ,
[0152] In formula (17) and (18), , , is the trainable weight matrix of the attention mechanism, is the attention weight, yes , , The matrix dimensions are It is the result of the hypergraph convolution after the attention score. It can be understood that the hypergraph convolution result is the attention score result of each hyperedge in the hypergraph, and the attention score result is used to compare the importance of each hyperedge.
[0153] Step S70, inputting the first feature information, the second feature information and the third feature information into a fully connected neural network to predict the probability of a correct answer to the next question.
[0154] Preferably, the step S70 may include the following steps:
[0155] Step S701, obtaining a fully connected neural network, wherein the fully connected neural network includes a fully connected layer and a nonlinear activation layer.
[0156] Step S702, the first feature information, the second feature information and the third feature information are processed by the fully connected layer and the nonlinear activation layer to obtain the correct answer probability of the next exercise. The processing process of the fully connected neural network is:
[0157] Formula (19) ,
[0158] Formula (20) ,
[0159] Formula (21) ,
[0160] In formulas (19)-(21), , , , are the trainable parameters of the fully connected neural network, is the Tanh function, is the second feature information (i.e., the output feature of the dual-channel model), is the first feature information (i.e., the output feature of the improved graph convolutional neural network), is the third feature information (i.e., the output feature of the hypergraph neural network), Sigmoid and Softmax are nonlinear functions. Understandably, is the output result of formula (19), is the output result of formula (20), It is the prediction result of the fully connected layer on the student’s answer at time step t+1.
[0161] In this embodiment, in order to evaluate the effectiveness of the multi-graph-based knowledge tracing method provided by the present invention, some knowledge tracing models can be used as a comparison. The detailed description of the knowledge tracing model is as follows:
[0162] DKT: This model is a pioneering work in the field of deep knowledge tracing. It uses a recurrent neural network (RNN) as the basic architecture, which enables the model to meet the recency effect of learning and simulate the evolution of students' cognitive states.
[0163] GIKT: This model builds a knowledge tracking model based on a graph structure and proposes to use a graph neural network (GNN) to capture the dependencies between exercises and skills, summarizing students’ mastery of exercises as the student’s current state, the student’s historical records of related exercises, and the interaction between target exercises and related skills.
[0164] SGKT: This model intends to use conversation graphs and relationship graphs to model the students' answering process and the dependencies between exercises and skills, respectively, and then perform embedded propagation through gated neural networks and graph convolutional networks, and finally introduce an attention mechanism for prediction.
[0165] DKVMN: This method decomposes the standard memory-enhanced neural network into a static matrix that stores knowledge concepts and a dynamic matrix that stores and updates the mastery of the corresponding concepts. It uses the relationship between the underlying concepts to directly obtain the students' mastery of different concepts.
[0166] CKT: This model proposes a novel convolutional knowledge tracking method to measure personalized prior knowledge from students' historical learning interactions, extract learning rates from continuous learning interactions, and automatically learn meaningful exercise embeddings for personalized modeling.
[0167] DKT+Forget: This model incorporates multiple types of information related to forgetting, focusing on considering students' forgetting behavior to model and predict students' knowledge, and expands the deep knowledge tracking model.
[0168] On three public knowledge tracing datasets, the multi-graph based knowledge tracing method (referred to as “this method”) provided by the present invention is compared with the existing knowledge tracing models, and the performance evaluation results are shown in Table 1.
[0169] Table 1 Performance evaluation results of knowledge tracking methods
[0170]
[0171] In Table 1, the ASSIST2009 dataset is a public dataset published by the ASSISTments online education platform in the 2009-2010 academic year, which collects student data and is often used to verify the accuracy of knowledge tracking models. The dataset contains the answer records of 3,852 students, covering 17,737 exercises and 167 corresponding knowledge points.
[0172] The ASSIST2017 dataset was provided by the ASSISTments online education platform in 2017. The dataset consists of 942,816 responses from 1,709 students on 102 knowledge concepts.
[0173] The EdNet dataset is a large-scale public dataset provided by the artificial intelligence guidance system Santa, which collects student learning data. It covers 784,309 students and a total of 131,441,538 interactions. In the experiment, we extracted the answer records of 5,000 students, which included 12,150 exercises and 189 corresponding knowledge points.
[0174] ACC is the ACC index (Accuracy), i.e., accuracy; AUC (Area Under the Curve) is a model evaluation index in the field of machine learning, and AUC is the area under the ROC curve (i.e., the binary classification model analysis curve). According to the performance evaluation results in Table 1, the multi-graph-based knowledge tracking method provided by the present invention has better performance.
[0175] In summary, the multi-graph-based knowledge tracing method of the embodiment of the present invention has the following beneficial effects:
[0176] 1) The present invention adds a forget gating mechanism to the graph convolutional network, and performs additional forgetting processing on each layer of nodes by improving the graph convolutional neural network, so that the forgetting information is fully integrated with the knowledge state information of the node.
[0177] 2) The present invention uses a dual-channel model based on a graph communication layer and a gated recurrent unit to jointly characterize the students' knowledge status by utilizing the correlation and directionality between questions and answers, and between concepts and answers.
[0178] 3) The present invention uses a hypergraph convolutional network based on long short-term memory network and attention mechanism to learn high-order semantic information and transcendental relationships in the hypergraph, and improve the sensitivity of the convolutional network to node differences.
[0179] 4) The multi-graph-based knowledge tracking method provided by the present invention has better performance, that is, the multi-graph-based knowledge tracking method provided by the present invention can predict students' answers more accurately and comprehensively, and can provide data support for teachers' precise teaching.
[0180] Based on the same inventive concept, the present invention also provides a multi-graph-based knowledge tracking system for implementing the multi-graph-based knowledge tracking method involved above. The implementation scheme for solving the problem provided by the system is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more multi-graph-based knowledge tracking system embodiments provided below can refer to the limitations of the multi-graph-based knowledge tracking method above, and will not be repeated here.
[0181] Reference Figure 4 , based on the above Figure 1 In the embodiment shown, the multi-graph-based knowledge tracking system includes a heterogeneous graph generation module 110, a heterogeneous graph processing module 120, a directed graph generation module 130, a directed graph processing module 140, a hypergraph generation module 150, a hypergraph processing module 160 and a question prediction module 170. The detailed description of each functional model is as follows:
[0182] A heterogeneous graph generation module 110 is used to obtain question sequences and concept sequences of different students and generate a heterogeneous information graph;
[0183] A heterogeneous graph processing module 120, configured to input the heterogeneous information graph into a preset improved graph convolutional neural network, and output first feature information, wherein the improved graph convolutional neural network is a network model generated by using a graph convolutional neural network and a forget gating mechanism;
[0184] A directed graph generation module 130, for obtaining answer sequences of different students, generating a directed multigraph of concepts and answers according to the concept sequence and the answer sequence, and generating a directed multigraph of questions and answers according to the question sequence and the answer sequence;
[0185] A directed graph processing module 140 is used to input the concept-answer directed multigraph and the question-answer directed multigraph into a preset dual-channel model, and output second feature information, wherein the dual-channel model is a network model generated by using a fully connected layer, a graph communication layer, and a gated recurrent unit;
[0186] A hypergraph generation module 150 is used to obtain a priori relationship between questions and concepts and a priori relationship between questions and answers, and generate a hypergraph;
[0187] A hypergraph processing module 160, configured to input the hypergraph into a preset hypergraph convolutional network and output third feature information, wherein the hypergraph convolutional network is a network model generated by using a long short-term memory network and an attention mechanism;
[0188] The answer prediction module 170 is used to input the first feature information, the second feature information and the third feature information into a fully connected neural network to predict the probability of a correct answer to the next question.
[0189] As a preferred embodiment, the heterogeneous graph processing module 120 includes the following submodules, and the detailed description of each functional submodule is as follows:
[0190] A forgetting processing submodule, used to determine a current node from the heterogeneous information graph, extract multiple neighboring nodes of the current node through the forgetting gating mechanism for calculation, and assign forgetting information to the current node;
[0191] A node aggregation submodule aggregates information of the current node with other nodes to obtain aggregated information of the current node;
[0192] A node update submodule, used to perform node information update according to the aggregation information and forgotten information of the current node;
[0193] The first feature output submodule is used to splice the updated information of all nodes to obtain the first feature information.
[0194] As a preferred embodiment, the directed graph processing module 140 includes the following submodules, and the detailed description of each functional submodule is as follows:
[0195] A vector conversion submodule, used for performing vector conversion on the concept-answer directed multigraph and the question-answer directed multigraph through a fully connected layer to obtain corresponding directed graph feature vectors;
[0196] A vector aggregation submodule, used for aggregating the directed graph feature vectors corresponding to the concept-answer directed multigraph and the question-answer directed multigraph through a graph communication layer to obtain an aggregation result;
[0197] An information extraction submodule, used to extract information from the aggregation result through a gated recurrent unit to obtain student knowledge status information;
[0198] The second feature output submodule is used to splice all the student knowledge status information to obtain the second feature information.
[0199] As a preferred embodiment, the hypergraph generation module 150 includes the following submodules, and the detailed description of each functional submodule is as follows:
[0200] The node and hyperedge determination submodule is used to determine the questions that examine the same concept as nodes in the hypergraph, and the concepts included in the questions as hyperedges by using the prior relationship between questions and concepts and the prior relationship between questions and answers;
[0201] The hyperedge connection submodule is used to connect hyperedges through shared problem nodes in concepts to form a hypergraph.
[0202] As a preferred embodiment, the hypergraph processing module 160 includes the following submodules, and the detailed description of each functional submodule is as follows:
[0203] A hypergraph convolution submodule, used for performing hypergraph convolution through the long short-term memory network;
[0204] The attention scoring submodule is used to perform attention scoring on the hyperedge after the hypergraph convolution through the attention mechanism, and obtain the third feature information according to the attention scoring result of the hyperedge.
[0205] As a preferred embodiment, the answer prediction module 170 includes the following submodules, and the detailed description of each functional submodule is as follows:
[0206] A network acquisition submodule, used to acquire a fully connected neural network, wherein the fully connected neural network includes a fully connected layer and a nonlinear activation layer;
[0207] The prediction result output submodule is used to process the first feature information, the second feature information and the third feature information through the fully connected layer and the nonlinear activation layer to obtain the probability of a correct answer to the next question.
[0208] Each module in the above multi-graph-based knowledge tracking system can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0209] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or system. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method or system including the element.
[0210] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A multi-graph based knowledge tracking method, characterized in that: include: Obtain the question sequences and concept sequences of different students and generate heterogeneous information graphs; Inputting the heterogeneous information graph into a preset improved graph convolutional neural network, and outputting first feature information, wherein the improved graph convolutional neural network is a network model generated by using a graph convolutional neural network and a forget gating mechanism; Obtain answer sequences of different students, generate a directed multigraph of concepts and answers according to the concept sequence and the answer sequence, and generate a directed multigraph of questions and answers according to the question sequence and the answer sequence; Inputting the concept-answer directed multigraph and the question-answer directed multigraph into a preset dual-channel model, and outputting second feature information, wherein the dual-channel model is a network model generated by using a fully connected layer, a graph communication layer, and a gated recurrent unit; Obtain the prior relationship between questions and concepts and the prior relationship between questions and answers, and generate a hypergraph; Inputting the hypergraph into a preset hypergraph convolutional network, and outputting third feature information, wherein the hypergraph convolutional network is a network model generated by using a long short-term memory network and an attention mechanism; Inputting the first feature information, the second feature information and the third feature information into a fully connected neural network to predict the probability of a correct answer to the next exercise; The step of inputting the heterogeneous information graph into a preset improved graph convolutional neural network and outputting the first feature information comprises: Determine a current node from the heterogeneous information graph, extract multiple neighboring nodes of the current node through the forget gating mechanism for calculation, and assign forgetting information to the current node; Aggregating information of the current node with other nodes to obtain aggregated information of the current node; Perform node information update according to the aggregation information and forgetting information of the current node; The updated information of all nodes is spliced to obtain the first feature information; The inputting the concept-answer directed multigraph and the question-answer directed multigraph into a preset dual-channel model, and outputting the second feature information comprises: Performing vector conversion on the concept-answer directed multigraph and the question-answer directed multigraph through a fully connected layer to obtain corresponding directed graph feature vectors; Aggregating the directed graph feature vectors corresponding to the concept-answer directed multigraph and the question-answer directed multigraph through the graph communication layer to obtain an aggregation result; Extracting information from the aggregation results through a gated recurrent unit to obtain student knowledge status information; All the student knowledge status information is concatenated to obtain second feature information; Inputting the hypergraph into a preset hypergraph convolutional network and outputting the third feature information comprises: The hypergraph convolution is performed through the long short-term memory network, and the hypergraph convolution process is: Formulas (7) , In formula (7), is the node degree, is the super edge, is the input layer of the hypergraph convolution, is the output layer of the hypergraph convolution, are the trainable parameters of the LSTM network, is the incidence matrix of the hypergraph, is the transposed matrix of the incidence matrix, is a long short-term memory network; The hyperedge after the hypergraph convolution is scored by the attention mechanism, and the third feature information is obtained according to the attention score result of the hyperedge; the scoring process of the attention mechanism is: Formulas (8) , Formulas (9) , In formula (8) and (9), , , is the trainable weight matrix of the attention mechanism, is the attention weight, yes , , The matrix dimensions are It is the result of hypergraph convolution after attention scoring.
2. The multi-graph-based knowledge tracking method according to claim 1, characterized in that: The forgotten information of the current node is: Formula (1) , In formula (1), is the forget information obtained by the current node through the forget gating mechanism. , They are respectively used to improve the trainable weights and biases of graph convolutional neural networks. For the neighboring nodes, is the total number of adjacent nodes, is the activation function; The updated information of the current node is: Formula (2) , In formula (2), The updated information of the current node. The information before the current node is updated. It is element-wise addition.
3. The multi-graph-based knowledge tracking method according to claim 1, characterized in that: The information extraction process of the gated recurrent unit is: Formula (3) , Formula (4) , Formula (5) , Formula(6) , In formulas (5)-(6), The update gate for transmitting information, is the sigmoid function, , , and , , is the trainable weight matrix of the gated recurrent unit, A reset gate that determines the degree of information forgetting. is the current memory state, is the final memory state in the network structure, Represents element-wise multiplication.
4. The multi-graph-based knowledge tracking method according to claim 1, characterized in that: The step of obtaining the prior relationship between the question and the concept and the prior relationship between the question and the answer and generating a hypergraph includes: By using the prior relationship between questions and concepts and the prior relationship between questions and answers, questions that examine the same concept are identified as nodes in the hypergraph, and the concepts included in the questions are identified as hyperedges. Hyperedges are connected through shared problem nodes in concepts to form a hypergraph.
5. The multi-graph-based knowledge tracking method according to claim 1, characterized in that: The step of inputting the first feature information, the second feature information, and the third feature information into a fully connected neural network to predict the probability of a correct answer to the next exercise comprises: Obtain a fully connected neural network, wherein the fully connected neural network comprises a fully connected layer and a nonlinear activation layer; The first feature information, the second feature information and the third feature information are processed by the fully connected layer and the nonlinear activation layer to obtain a probability of a correct answer to the next question.
6. The multi-graph-based knowledge tracking method according to claim 5, characterized in that: The processing process of the fully connected neural network is: Formulas (10) , Official(11) , Formula(12) , In formulas (10)-(12), , , , are the trainable parameters of the fully connected neural network, is the Tanh function, is the second characteristic information, is the first characteristic information, is the third feature information, Sigmoid and Softmax are nonlinear functions, is the concatenation function.
7. A multi-graph-based knowledge tracking system, characterized in that: include: Heterogeneous graph generation module, used to obtain question sequences and concept sequences of different students and generate heterogeneous information graphs; A heterogeneous graph processing module, used for inputting the heterogeneous information graph into a preset improved graph convolutional neural network, and outputting first feature information, wherein the improved graph convolutional neural network is a network model generated by using a graph convolutional neural network and a forget gating mechanism; A directed graph generation module, used for obtaining answer sequences of different students, generating a directed multigraph of concepts and answers according to the concept sequence and the answer sequence, and generating a directed multigraph of questions and answers according to the question sequence and the answer sequence; a directed graph processing module, used for inputting the concept-answer directed multigraph and the question-answer directed multigraph into a preset dual-channel model, and outputting second feature information, wherein the dual-channel model is a network model generated by using a fully connected layer, a graph communication layer and a gated recurrent unit; A hypergraph generation module is used to obtain the prior relationship between questions and concepts and the prior relationship between questions and answers, and generate a hypergraph; A hypergraph processing module, used for inputting the hypergraph into a preset hypergraph convolutional network, and outputting third feature information, wherein the hypergraph convolutional network is a network model generated by using a long short-term memory network and an attention mechanism; An answer prediction module, used for inputting the first feature information, the second feature information and the third feature information into a fully connected neural network to predict the probability of a correct answer to the next question; Among them, the heterogeneous graph processing module includes: A forgetting processing submodule, used to determine a current node from the heterogeneous information graph, extract multiple neighboring nodes of the current node through the forgetting gating mechanism for calculation, and assign forgetting information to the current node; A node aggregation submodule aggregates information of the current node with other nodes to obtain aggregated information of the current node; A node update submodule, used to perform node information update according to the aggregation information and forgotten information of the current node; The first feature output submodule is used to splice the updated information of all nodes to obtain the first feature information; The directed graph processing module includes: a vector conversion submodule, which is used to perform vector conversion on the concept-answer directed multigraph and the question-answer directed multigraph through a fully connected layer to obtain corresponding directed graph feature vectors; A vector aggregation submodule, used for aggregating the directed graph feature vectors corresponding to the concept-answer directed multigraph and the question-answer directed multigraph through a graph communication layer to obtain an aggregation result; An information extraction submodule, used to extract information from the aggregation result through a gated recurrent unit to obtain student knowledge status information; The second feature output submodule is used to concatenate all the student knowledge status information to obtain the second feature information; The hypergraph processing module comprises: The hypergraph convolution submodule is used to perform hypergraph convolution through the long short-term memory network, and the hypergraph convolution process is: Formulas (7) , In formula (7), is the node degree, is the super edge, is the input layer of the hypergraph convolution, is the output layer of the hypergraph convolution, are the trainable parameters of the LSTM network, is the incidence matrix of the hypergraph, is the transposed matrix of the incidence matrix, is a long short-term memory network; The attention scoring submodule is used to perform attention scoring on the hyperedge after the hypergraph convolution through the attention mechanism, and obtain the third feature information according to the attention scoring result of the hyperedge; the scoring process of the attention mechanism is: Formulas (8) , Formulas (9) , In formula (8) and (9), , , is the trainable weight matrix of the attention mechanism, is the attention weight, yes , , The matrix dimensions are It is the result of hypergraph convolution after attention scoring.
