Knowledge tracking method and system
By constructing a time-series heterogeneous graph set and using deep learning technology to complete missing data and learn dynamic evolution patterns, it solves the problem of the inability of existing technologies to handle heterogeneous interactive information and long-time knowledge tracking, and achieves efficient tracking of students' learning status. Prediction and personalized recommendations.
Patent Information
- Application Number
- CN202410745351.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-11
AI Technical Summary
Existing technology cannot synchronize the heterogeneous interactive information between students, exercises, and knowledge points, resulting in poor knowledge tracking performance and difficulty in achieving long-term knowledge tracking.
Construct a collection of time-series heterogeneous graphs to complete missing data, use graph convolutional neural networks and graph attention neural networks to represent nodes and relationships as vectors, and combine time-series recurrent neural networks to learn dynamic evolution patterns to predict students' opinions on new knowledge points in the future. learning situation.
It achieves effective tracking and prediction of long-term knowledge, and meets the needs of online education platforms for students' long-term knowledge tracking and personalized recommendations.
Smart Images

Figure CN118761460A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart education, and in particular to a knowledge tracking method and system. Background Art
[0002] In recent years, online education has developed rapidly as a supplement to traditional classroom education, and more and more online courses have been developed. However, how to evaluate and predict students' mastery of knowledge points in low-interaction online course scenarios is a severe challenge facing online education. At present, knowledge tracking provides a feasible method for evaluating students' learning status. It is committed to collecting and analyzing students' answers to capture students' cognitive process of learning knowledge and predict students' ability to learn new knowledge points in the future. It has important practical significance for personalized learning guidance for online students.
[0003] In the prior art, the invention patent with publication number CN112182308B discloses a multi-feature fusion deep knowledge tracking method and system based on multi-hot encoding, which can improve the data utilization rate of the data set and realize the prediction of multiple skills. However, the invention patent cannot simultaneously explore the relationship between students, exercises and skills, which is bound to lose the intrinsic evolution pattern of students' skill learning, resulting in poor knowledge tracking performance. The invention patent with publication number CN112256858A discloses a dual convolution knowledge tracking method and system that integrates question patterns and answer results. By modeling and extracting question pattern feature data and answer result feature data, these two features are integrated for knowledge tracking, which can improve the prediction accuracy. However, the invention patent cannot explore the heterogeneous interactive information between students, exercises and knowledge points. At the same time, the patent is difficult to achieve long-term knowledge tracking, resulting in poor knowledge tracking effect. Summary of the invention
[0004] To this end, the present invention proposes a knowledge tracking method and system to overcome the drawbacks of traditional knowledge tracking methods that they cannot synchronously process multi-source heterogeneous knowledge and lack of time series information, and to solve the technical problem that traditional knowledge tracking technology cannot perceive and predict students' learning status over a long time series.
[0005] To achieve the above objectives, the present invention adopts the following technical solutions:
[0006] According to a first aspect of the present invention, the present invention provides a knowledge tracking method, the method comprising:
[0007] Construct a set of temporal heterogeneous graphs to characterize students' knowledge learning;
[0008] Completing the missing data in the time series heterogeneous graph set to obtain a long time series knowledge evolution sequence;
[0009] Performing vector representation on each node and relationship in the long time series knowledge evolution sequence to obtain an embedding vector;
[0010] Inputting the embedding vector into a preset time series recurrent neural network model to learn the dynamic evolution pattern of heterogeneous knowledge graphs of different time series;
[0011] Based on the dynamic evolution model, predict the students' learning of new knowledge points in the future.
[0012] Furthermore, the construction of a set of temporal heterogeneous graphs for characterizing students' knowledge learning situations includes:
[0013] Acquire intrinsic interaction data corresponding to a plurality of different moments, wherein the intrinsic interaction data includes student data, exercise data, and knowledge point data;
[0014] Constructing a heterogeneous knowledge graph using the intrinsic interaction data corresponding to a plurality of different moments;
[0015] Aggregate the heterogeneous knowledge graphs constructed at multiple different times into the temporal heterogeneous graph set G = (G 1 ,G 2 ,…,G t );Among them, G t is the heterogeneous knowledge graph constructed at time t.
[0016] Furthermore, the missing data in the time series heterogeneous graph set is supplemented to obtain a long time series knowledge evolution sequence, including:
[0017] The missing data in the temporal heterogeneous graph set is completed by using a generative technology based on deepening intensity learning; the missing data includes the temporal heterogeneous graph (G) in the time period [t+1, ..., t+n-1] t+1 ,…,G t+n-1 )’s edge data;
[0018] Get the long time series knowledge evolution sequence v ′ =(G 1 ,G 2 ,…,G t ,G t+1 ,…,G t+n-1 ).
[0019] Furthermore, each node and relationship in the long time series knowledge evolution sequence is represented by a vector to obtain an embedded vector, including:
[0020] Using a graph convolutional neural network mechanism to learn the local features of the heterogeneous knowledge graph corresponding to each moment in the long temporal knowledge evolution sequence;
[0021] The graph attention neural network mechanism is used to aggregate local features under different meta-paths to obtain the global features of the heterogeneous knowledge graph corresponding to each moment;
[0022] The mutual information maximization mechanism is used to learn the global features of positive samples and negative samples, and the vector representation H = (H1, H2, ..., H t ,…,H t+n-1 ).
[0023] Furthermore, the predicting of students' learning of future new knowledge points based on the dynamic evolution model includes:
[0024] Based on the dynamic evolution model, the multi-layer perceptron network mechanism is used to predict the heterogeneous knowledge graph G at time r+n. t +n Link relationship;
[0025] If the link relationship includes a target student node edge connecting a target new knowledge point node, it is considered that the target student is able to master the target new knowledge point.
[0026] Furthermore, the step of constructing a heterogeneous knowledge graph using the intrinsic interaction data corresponding to a plurality of different moments includes:
[0027] Using the intrinsic interaction data corresponding to multiple different moments, a heterogeneous knowledge graph G including student nodes, exercise nodes, knowledge point nodes and edge connection relationships between any two nodes is constructed. t =(V t ,E t );
[0028] Among them, G t is the heterogeneous knowledge graph at time t, V t is the node set, E t is a set of edges; each node v∈V t belongs to a specific node type in the node type set T, ψ(v)∈T; each edge e∈E t A specific edge type belongs to the set of node types R, ψ(e)∈R.
[0029] Furthermore, the method of using a generative technology based on deepening intensity learning to complete the missing data in the temporal heterogeneous graph set includes:
[0030] The Markov decision method is used to simulate and update the heterogeneous knowledge graph; the structure reward function and the adversarial reward function are calculated using a generative technology based on deep intensity learning, and the topological structure (G t+1 ,…,G t+n-1 )’s edge data:
[0031] Wherein, the use of the Markov decision method to simulate and update the heterogeneous knowledge graph includes:
[0032] The edge data completion process of the heterogeneous knowledge graph is formalized as a Markov decision process:
[0033] MDP=<S,A,P,R,r> ;
[0034] The completion process of the temporal heterogeneous graph set is the state transition sequence: (s0, a0, r0, ..., s n ,a n ,r n );
[0035] Each simulation update process can be expressed as:
[0036]
[0037] Where S = {s i} is the set of all heterogeneous knowledge graph states; A = {a i} is the activity set; P is the state transition operation; R(s t ) is the arrival state s t The reward is r, the decay coefficient; s n The heterogeneous knowledge graph is finally generated;
[0038] The method of calculating the structural reward function and the adversarial reward function using a generative technique based on deep strength learning includes:
[0039] The structural reward function is calculated using the following formula:
[0040]
[0041] Among them, λ is the reward coefficient, β is the direct reward, ε is the threshold for activity update, sim(s t ,s f ) is used to calculate the heterogeneous knowledge graph in the current state s t and the final state s f The difference is formalized as:
[0042]
[0043] in, and They are respectively the knowledge graph in the current state s t and the final state s f The vector representation of ;
[0044] The adversarial reward function is calculated using the following formula:
[0045]
[0046] Among them, π θ is the policy network, D φ is the discriminator network, x is the heterogeneous knowledge graph input, P data For data distribution.
[0047] Furthermore, the method of using a graph convolutional neural network mechanism to learn the local features of the heterogeneous knowledge graph corresponding to each moment in the long temporal knowledge evolution sequence includes:
[0048] Under the meta-path, similarity measurement is performed on any two nodes in the heterogeneous knowledge graph to convert the heterogeneous knowledge graph into an isomorphic graph or a bipartite graph, and the local features of the heterogeneous knowledge graph are captured using a graph convolutional network mechanism;
[0049] The step of measuring the similarity between any two nodes in the knowledge heterogeneous graph includes:
[0050] The knowledge heterogeneous graph G at time t t and the set of meta-paths P = {p1,p2,…,p M Any two nodes v of i and v j The similarity is defined as sim(v i ,v j );
[0051]
[0052] Among them, v i→j ∈p m is node v i and v j In the metapath p m The following example pairs:
[0053] β m is the meta-path p m The attention weight of
[0054] The heterogeneous knowledge graph is converted into a homogeneous graph or a bipartite graph, and the local features of the heterogeneous knowledge graph are captured using a graph convolutional network mechanism, including:
[0055] Heterogeneous knowledge graph G at time t t is converted into an isomorphic graph or a bipartite graph
[0056] Among them, each element
[0057] Determine the knowledge graph adjacency matrix and node feature matrix X t , using graph convolutional networks to capture local feature representations of graphs Formally:
[0058]
[0059] Among them, W (0) ∈R d×H is the weight matrix of the input layer and the hidden layer; W (1) ∈R H×F is the weight matrix from the hidden layer to the output layer; σ is the sigmoid activation function;
[0060] And / or, the method of using the graph attention neural network mechanism to aggregate local features under different meta-paths to obtain the global features of the heterogeneous knowledge graph corresponding to each moment includes:
[0061] Use graph attention neural network mechanism to aggregate different meta-paths P = {p1,p2,…,p M} to embed local features under , in order to obtain global features;
[0062] The local feature aggregation process based on the graph attention neural network mechanism is expressed as:
[0063]
[0064] in, is the meta-path p m For embedding representation of heterogeneous knowledge graph G t The importance weight of is a set of local features;
[0065] Normalized meta-path weight coefficient It is expressed as:
[0066]
[0067] in, For a specific meta-path p m The local feature weights under , are formalized as:
[0068]
[0069] The global feature h tIt is expressed as:
[0070]
[0071] Furthermore, the global features of positive samples and negative samples are learned by using the mutual information maximization mechanism to obtain the vector representation of each node and relationship in the heterogeneous knowledge graph corresponding to each moment in the long time series knowledge evolution sequence, including:
[0072] The mutual information maximization loss function is used to continuously optimize the global feature information of the heterogeneous knowledge graph, and the heterogeneous knowledge graph G at time t is obtained. t The final embedding representation H t ;
[0073] Among them, the mutual information maximization loss function is expressed as:
[0074]
[0075] Among them, N and M are the number of positive and negative samples, E (X,A) and For positive instances (X, A) and negative instances The mathematical expectation of .
[0076] According to a second aspect of the present invention, the present invention provides a knowledge tracking system, the system comprising:
[0077] A temporal knowledge graph construction unit, used to construct a temporal heterogeneous graph set for representing students' knowledge learning status;
[0078] A dynamic knowledge graph completion unit, used to complete the missing data in the temporal heterogeneous graph set to obtain a long temporal knowledge evolution sequence;
[0079] A temporal knowledge graph embedding unit, used to vectorize each node and relationship in the long temporal knowledge evolution sequence to obtain an embedding vector;
[0080] A dynamic evolution tracking unit, used for inputting the embedding vector into a preset time series recurrent neural network model to learn the dynamic evolution pattern of heterogeneous knowledge graphs of different time series;
[0081] The knowledge learning prediction unit is used to predict students' learning of future new knowledge points based on the dynamic evolution model.
[0082] The present invention adopts the above technical solution and has at least the following beneficial effects:
[0083] Through the scheme of the present invention, a set of time-series heterogeneous graphs for characterizing students' knowledge learning is constructed; missing data in the time-series heterogeneous graph set is completed to obtain a long time-series knowledge evolution sequence; each node and relationship in the long time-series knowledge evolution sequence is represented by a vector to obtain an embedding vector; the embedding vector is input into a preset time-series recurrent neural network model to learn the dynamic evolution pattern of heterogeneous knowledge graphs of different time series; and students' learning of new knowledge points in the future is predicted based on the dynamic evolution pattern. In this way, knowledge tracking of long-series and incomplete knowledge evolution sequences is realized, which can meet the practical needs of online education platforms for students' long-series knowledge tracking and personalized knowledge recommendation.
[0084] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0086] Figure 1 A schematic diagram of a process flow of a knowledge tracking method provided by an embodiment of the present invention is shown;
[0087] Figure 2 A brief schematic diagram showing the missing of long time series knowledge evolution data provided by an embodiment of the present invention is shown;
[0088] Figure 3 A brief schematic diagram of a meta-path provided by an embodiment of the present invention is shown;
[0089] Figure 4 A schematic diagram showing the structure of a knowledge tracking system provided by an embodiment of the present invention is shown;
[0090] Figure 5 A working framework diagram of a knowledge tracking system provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0091] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0092] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0093] The embodiment of the present invention provides a knowledge tracking method, such as Figure 1 As shown, at least the following steps S101 to S105 may be included:
[0094] Step S101, constructing a set of temporal heterogeneous graphs for representing students' knowledge learning status.
[0095] The embodiment of the present invention can first obtain the intrinsic interaction data corresponding to multiple different time periods; construct a heterogeneous knowledge graph using the intrinsic interaction data corresponding to multiple different time periods; aggregate the heterogeneous knowledge graphs constructed at multiple different time periods into a temporal heterogeneous graph set G = (G 1 ,G 2 ,…,G t );Among them, G t is the heterogeneous knowledge graph constructed at time t.
[0096] The intrinsic interaction data includes student data, exercise data, and knowledge point data. That is, the embodiment of the present invention first uses a heterogeneous graph to model the intrinsic interaction relationship between students, exercises, and knowledge points, and aggregates the heterogeneous knowledge graphs constructed at different times into a temporal heterogeneous graph set G = (G 1 ,G 2 ,…,G t ). In the specific knowledge tracking task, the relationship between students, exercises, and knowledge points at time t can be used to utilize the heterogeneous knowledge graph G t =(V t ,E t ) to characterize. Among them, V t represents a node set, E t Represents the edge set, each node v∈V t belongs to the set of node types T; a specific node type in ψ(v)∈T; each edge e∈E tBelongs to the node type set R; a specific edge type in ψ(e)∈R. Therefore, the knowledge heterogeneous graphs at different times can be aggregated into a knowledge heterogeneous graph sequence G = (G 1 ,G 2 ,…,G t ). It can be understood that the temporal heterogeneous graph set G can effectively contain the dynamic evolution pattern of students' understanding of knowledge.
[0097] Step S102, completing the missing data in the time series heterogeneous graph set to obtain a long time series knowledge evolution sequence.
[0098] It is understandable that in real knowledge tracking tasks, it is unrealistic to obtain a complete knowledge evolution sequence in real time, such as Figure 2 The figure shows a simplified schematic diagram of missing data in long-term knowledge evolution. In the time period [t+1,…,t+n-1], data missing occurs in the knowledge evolution sequence, which seriously affects the performance of long-term knowledge tracking. In order to reduce the impact of missing data on long-term knowledge tracking, an embodiment of the present invention proposes a dynamic knowledge graph completion method based on reinforcement learning to iteratively update the side information in the time period.
[0099] The embodiment of the present invention uses a generative technology based on deep strength learning to complete the missing data in the time series heterogeneous graph set; the missing data includes the time series heterogeneous graph (G) in the time period [t+1, ..., t+n-1] t+1 ,…,G t+n-1 ) edge data; the long time series knowledge evolution sequence can be expressed as:
[0100] G′=(G 1 ,G 2 ,…,G t ,G t+1 ,…,G t+n-1 ).
[0101] Specifically, the present invention formalizes the dynamic knowledge graph completion task into a Markov decision process:
[0102] MDP=<S,A,P,R,r> ;
[0103] Where S = {s i} represents the set of all heterogeneous knowledge graph states, A={a i} represents the activity set, P is the state transition operation, R(s t ) indicates reaching state s t The heterogeneous knowledge graph completion process can be modeled as a state transition sequence (s0, a0, r0, …, s n ,a n ,r n);s n Represents the final generated heterogeneous knowledge graph. Each update process can be expressed as:
[0104]
[0105] The present invention designs a collaborative learning reward function based on structural reward and adversarial reward to guide the knowledge graph completion process. The structural reward function is defined as:
[0106]
[0107] Among them, λ represents the reward coefficient, β represents the direct reward, ε represents the threshold of activity update, sim(s t ,s f ) is used to calculate the knowledge graph in the current state s t and the final state s f The difference is formalized as:
[0108]
[0109] in, and Respectively represent the knowledge graph in the current state s t and the final state s f The vector embedding of .
[0110] In addition, the present invention can also use a generative adversarial network to calculate adversarial rewards, which can be formalized as:
[0111]
[0112] Among them, π θ is a policy network, D φ represents the discriminator network, x represents the knowledge graph input, and P data Represents data distribution.
[0113] Thus, by giving a heterogeneous knowledge graph sequence (G 1 ,G 2 ,…,G t ) as input, based on the structural reward function and the adversarial reward function, complete the time period [t+1,…,t+n-1] (G t+1 ,…,G t+n-1 ) side information, the completed knowledge graph (G t+1 ,…,G t+n-1) can support the requirements of long-term knowledge tracking. The embodiment of the present invention proposes a dynamic knowledge graph completion method based on reinforcement learning, which integrates the dual advantages of deep reinforcement learning and generative technology, and trains a reinforcement learning strategy to complete the missing interactive information (G t+1 ,…,G t+n-1 ). This dynamic knowledge graph completion method automatically completes the association relationship of long-term heterogeneous knowledge graphs by learning the evolution pattern of short-term heterogeneous knowledge graphs, which can meet the actual needs of long-term knowledge tracking.
[0114] Step S103, vectorizing each node and relationship in the long temporal knowledge evolution sequence to obtain an embedded vector.
[0115] Specifically, the embodiment of the present invention uses a graph convolutional neural network mechanism to learn the local features of the heterogeneous knowledge graph corresponding to each moment in the long time series knowledge evolution sequence; uses a graph attention neural network mechanism to aggregate local features under different meta-paths to obtain the global features of the heterogeneous knowledge graph corresponding to each moment; uses a mutual information maximization mechanism to learn the global features of positive and negative samples, and obtains the vector representation of each node and relationship in the heterogeneous knowledge graph corresponding to each moment in the long time series knowledge evolution sequence.
[0116] H=(H1,H2,…,H t ,…,H t+n-1 ).
[0117] First, the embodiment of the present invention is designed as follows Figure 3 The six meta-paths shown, given the knowledge heterogeneous graph G at time t t and the set of meta-paths P = {p1,p2,…,p M}, the similarity between any two nodes in the knowledge heterogeneous graph is measured under the meta-path to convert the heterogeneous knowledge graph into an isomorphic graph or a bipartite graph, and the graph convolutional network mechanism is used to capture the local features of the heterogeneous knowledge graph.
[0118] Among them, the similarity measurement of any two nodes in the knowledge heterogeneous graph includes:
[0119] The knowledge heterogeneous graph G at time t t and the set of meta-paths P = {p1,p2,…,p M Any two nodes v of i and v j The similarity is defined as sim(v i ,v j );
[0120]
[0121] Among them, v i→j∈p m is node v i and v j In the metapath p m The following example pairs:
[0122] β m is the meta-path p m The attention weight.
[0123] Furthermore, based on the above node similarity measurement method, the heterogeneous knowledge graph G at time t t Can be converted to an isomorphic graph or a bipartite graph Each element Given the transformed knowledge graph adjacency matrix and node feature matrix X t , using graph convolutional network mechanism to capture local feature representation of graph Formally:
[0124]
[0125] Among them, W (0) ∈R d×H Represents the weight matrix of the input layer and the hidden layer, W (1) ∈R H×F represents the weight matrix from the hidden layer to the output layer, and σ represents the sigmoid activation function.
[0126] Furthermore, the graph attention neural network mechanism is used to aggregate local features under different meta-paths to obtain the global features of the heterogeneous knowledge graph corresponding to each moment.
[0127] Use graph attention neural network mechanism to aggregate different meta-paths P = {p1,p2,…,p M} to embed local features under , in order to obtain global features;
[0128] The local feature aggregation process based on the graph attention neural network mechanism is expressed as:
[0129]
[0130] in, is the meta-path p m For embedding representation of heterogeneous knowledge graph G t The importance weight of is a set of local features;
[0131] Normalized meta-path weight coefficient It is expressed as:
[0132]
[0133] in, For a specific meta-path p m The local feature weights under , are formalized as:
[0134]
[0135] Global feature h t It is expressed as:
[0136]
[0137] Furthermore, the mutual information maximization mechanism is used to learn the global features of positive and negative samples, and the vector representation of each node and relationship in the heterogeneous knowledge graph corresponding to each moment in the long temporal knowledge evolution sequence is obtained.
[0138] The embodiment of the present invention uses the mutual information maximization global feature to learn the final embedding representation of the knowledge graph. The mutual information maximization loss function continuously optimizes the global feature information of the heterogeneous knowledge graph to obtain the heterogeneous knowledge graph G at time t. t The final embedding representation H t ;
[0139] Among them, the mutual information maximization loss function is expressed as:
[0140]
[0141] Among them, N and M are the number of positive and negative samples, E (X,A) and For positive instances (X, A) and negative instances The mathematical expectation of .
[0142] Step S104, input the embedding vector into a preset time series recurrent neural network model to learn the dynamic evolution pattern of heterogeneous knowledge graphs of different time series.
[0143] Obtain the vector representation of the heterogeneous knowledge graph at each time H = (H1, H2, ..., H t ,…,H t+n-1 ), using the time series recurrent neural network to learn the dynamic evolution patterns of heterogeneous knowledge graphs of different time series, and realize dynamic knowledge evolution tracking. It can be understood that based on the heterogeneous knowledge graphs (G 1 ,G 2 ,…,G t ,…,G t+n-1 )’s embedding vectors (H1,H2,…,H t ,…,H t+n-1 ), the embodiment of the present invention uses a temporal recurrent neural network to learn (H1, H2, ..., H t ,…,Ht +n-1 )’s evolution process, which contains students’ cognitive patterns of knowledge.
[0144] Step S105, predicting students' learning status of future new knowledge points based on the dynamic evolution model.
[0145] In the embodiment of the present invention, this step transforms the knowledge learning prediction problem into a heterogeneous knowledge graph link prediction problem, based on the heterogeneous knowledge graph sequence (G 1 ,G 2 ,…,G t ,…,G t+n-1 )’s embedding vectors (H1,H2,…,H t ,…,H t+n-2 ) and the dynamic evolution pattern learned in step S104, using the multi-layer perceptron network mechanism to predict the heterogeneous knowledge graph G at time t+n t+n If the link relationship includes the target student node edge connecting the target new knowledge point node, then it is considered that the target student can master the target new knowledge point. t+n A newly generated “student-knowledge point” edge indicates that the student is able to master the knowledge point.
[0146] The embodiment of the present invention provides a knowledge tracking method, which first uses a temporal heterogeneous graph to model the intrinsic interactive relationship between students, exercises, and knowledge points; secondly, it combines the advantages of reinforcement learning and generative models to design a dynamic graph completion method based on reinforcement learning to complete the missing information in the long temporal knowledge graph; then, it designs a self-supervised temporal heterogeneous graph embedding method to learn the vector representation of students, exercises, and knowledge points; finally, the learned vector representation is input into a temporal recurrent neural network to capture the dynamic cognitive pattern of students in the knowledge learning process, so as to efficiently and in real time predict the students' learning status of new knowledge points in the future. In summary, the beneficial effects of the present invention are:
[0147] 1) Breaking the drawbacks of traditional knowledge tracking methods that they cannot synchronously process multi-source heterogeneous knowledge and the lack of time series information, and solving the defect that traditional knowledge tracking technology cannot perceive and predict students' learning status in a long time series, a knowledge tracking method based on dynamic heterogeneous graph comparative learning is proposed to meet the needs of incomplete long-time series knowledge tracking.
[0148] 2) Use time-series heterogeneous graphs to model the intrinsic interactions between students, exercises, and knowledge points, and design a dynamic graph completion method based on reinforcement learning to complete the missing information in long time-series knowledge graphs, solving the dual challenges of the difficulty in modeling heterogeneous knowledge relationships and the lack of long-series knowledge evolution data.
[0149] 3) A self-supervised temporal heterogeneous graph embedding method is proposed to learn the vector representation of students, exercises and knowledge points, and the temporal recurrent neural network is used to capture the dynamic cognitive patterns of students in the process of knowledge learning, so as to efficiently and in real time predict the learning status of students for future new knowledge points.
[0150] 4) The use of the prototype system has proved that the present invention can effectively perceive the students' knowledge learning and cognitive process in long-term incomplete learning scenarios, and the solution of the present invention is easy to deploy in the existing online education system, simple to operate, safe and reliable, and has significant economic and social benefits and broad market promotion and application prospects.
[0151] Further, as Figure 1 The specific implementation of the present invention provides a knowledge tracking system, such as Figure 4 As shown, the system may include: a temporal knowledge graph construction unit 410, a dynamic knowledge graph completion unit 420, a temporal knowledge graph embedding unit 430, a dynamic evolution tracking unit 440 and a knowledge learning prediction unit 450.
[0152] A temporal knowledge graph construction unit 410 may be used to construct a temporal heterogeneous graph set for representing a student's knowledge learning situation;
[0153] The dynamic knowledge graph completion unit 420 can be used to complete the missing data in the temporal heterogeneous graph set to obtain a long temporal knowledge evolution sequence;
[0154] The temporal knowledge graph embedding unit 430 can be used to vectorize each node and relationship in the long temporal knowledge evolution sequence to obtain an embedding vector;
[0155] The dynamic evolution tracking unit 440 can be used to input the embedding vector into a preset time series recurrent neural network model to learn the dynamic evolution pattern of heterogeneous knowledge graphs of different time series;
[0156] The knowledge learning prediction unit 450 can be used to predict students' learning of new knowledge points in the future based on the dynamic evolution model.
[0157] Optionally, the time series knowledge graph construction unit 410 may also be used to obtain intrinsic interaction data corresponding to multiple different moments, where the intrinsic interaction data includes student data, exercise data, and knowledge point data;
[0158] Construct heterogeneous knowledge graphs using intrinsic interaction data corresponding to multiple different moments;
[0159] Aggregate heterogeneous knowledge graphs constructed at different times into a temporal heterogeneous graph set G = (G 1 ,G 2 ,…,G t );Among them, Gt is the heterogeneous knowledge graph constructed at time t.
[0160] Optionally, the dynamic knowledge graph completion unit 420 can also be used to complete the missing data in the temporal heterogeneous graph set using a generative technology based on deepening strength learning; the missing data includes the temporal heterogeneous graph (G t+1 ,…,G t+n-1 )’s edge data;
[0161] Get the long time series knowledge evolution sequence G ′ =(G 1 ,G 2 ,…,G t ,G t+1 ,…,G t+n-1 ).
[0162] Optionally, the temporal knowledge graph embedding unit 430 may also be used to learn the local features of the heterogeneous knowledge graph corresponding to each moment in the long temporal knowledge evolution sequence using a graph convolutional neural network mechanism;
[0163] The graph attention neural network mechanism is used to aggregate local features under different meta-paths to obtain the global features of the heterogeneous knowledge graph corresponding to each moment;
[0164] The mutual information maximization mechanism is used to learn the global features of positive and negative samples, and the vector representation of each node and relationship in the heterogeneous knowledge graph corresponding to each moment in the long time series knowledge evolution sequence is obtained. t ,…,H t+n-1 ).
[0165] Optionally, the knowledge learning prediction unit 450 can also be used to predict the heterogeneous knowledge graph G at time t+n based on the dynamic evolution mode and using the multi-layer perceptron network mechanism. t+n Link relationship;
[0166] If the link relationship includes a target student node edge connecting the target new knowledge point node, it is considered that the target student can master the target new knowledge point.
[0167] Optionally, the time series knowledge graph construction unit 410 can also be used to construct a heterogeneous knowledge graph G including student nodes, exercise nodes, knowledge point nodes, and edge connection relationships between any two nodes using the internal interaction data corresponding to multiple different time periods. t =(V t ,E t );
[0168] Among them, G t is the heterogeneous knowledge graph at time t, V t is the node set, Et is a set of edges; each node x∈X t belongs to a specific node type in the node type set T, ψ(v)∈T; each edge e∈E t A specific edge type belongs to the set of node types R, ψ(e)∈R.
[0169] Optionally, the dynamic knowledge graph completion unit 420 can also be used to simulate and update the heterogeneous knowledge graph using the Markov decision method; calculate the structural reward function and the adversarial reward function using the generative technology based on deep intensity learning, and complete the topological structure (G of the heterogeneous knowledge graph in the time period [t+1,…,t+n-1]) of the heterogeneous knowledge graph according to the structural reward function and the adversarial reward function. t+1 ,…,G t+n-1 )’s edge data:
[0170] Among them, the Markov decision method is used to simulate and update the heterogeneous knowledge graph, including:
[0171] The edge data completion process of heterogeneous knowledge graphs is formalized as a Markov decision process:
[0172] MDP=<S,A,P,R,r> ;
[0173] The completion process of the temporal heterogeneous graph set is the state transition sequence: (s0, a0, r0, …, s n ,a n ,r n );
[0174] Each simulation update process can be expressed as:
[0175]
[0176] Where S = {s i} is the set of all heterogeneous knowledge graph states; A = {a i} is the activity set; P is the state transition operation; R(s t ) is the arrival state s t The reward is r, the decay coefficient; s n The heterogeneous knowledge graph is finally generated;
[0177] Among them, the structure reward function and the adversarial reward function are calculated using generative technology based on deep strength learning, including:
[0178] The structural reward function is calculated using the following formula:
[0179]
[0180] Among them, λ is the reward coefficient, β is the direct reward, ε is the threshold for activity update, sim(st ,s f ) is used to calculate the heterogeneous knowledge graph in the current state s t and the final state s f The difference is formalized as:
[0181]
[0182] in, and They are respectively the knowledge graph in the current state s t and the final state s f The vector representation of ;
[0183] The adversarial reward function is calculated using the following formula:
[0184]
[0185] Among them, π θ is the policy network, D φ is the discriminator network, x is the heterogeneous knowledge graph input, P data For data distribution.
[0186] Optionally, the temporal knowledge graph embedding unit 430 may also be used to measure the similarity between any two nodes in the knowledge heterogeneous graph under the meta-path, so as to convert the heterogeneous knowledge graph into an isomorphic graph or a bipartite graph, and to capture the local features of the heterogeneous knowledge graph using a graph convolutional network mechanism;
[0187] Among them, the similarity measurement of any two nodes in the knowledge heterogeneous graph includes:
[0188] The knowledge heterogeneous graph G at time t t and the set of meta-paths P = {p1,p2,…,p M Any two nodes v of i and v j The similarity is defined as sim(v i ,v j );
[0189]
[0190] Among them, v i→j ∈p m is node v i and v j In the metapath p m The following example pairs:
[0191] β m is the meta-path p m The attention weight of
[0192] Among them, the heterogeneous knowledge graph is converted into a homogeneous graph or a bipartite graph, and the graph convolutional network mechanism is used to capture the local features of the heterogeneous knowledge graph, including:
[0193] Heterogeneous knowledge graph G at time t t is converted into an isomorphic graph or a bipartite graph
[0194] Among them, each element
[0195] Determine the knowledge graph adjacency matrix and node feature matrix X t , using graph convolutional networks to capture local feature representations of graphs Formally:
[0196]
[0197] Among them, W (0) ∈R d×H is the weight matrix of the input layer and the hidden layer; W (1) ∈R H×F is the weight matrix from the hidden layer to the output layer; σ is the sigmoid activation function;
[0198] And / or, using the graph attention neural network mechanism to aggregate local features under different meta-paths to obtain the global features of the heterogeneous knowledge graph corresponding to each moment, including:
[0199] Use graph attention neural network mechanism to aggregate different meta-paths P = {p1,p2,…,p M} to embed local features under , in order to obtain global features;
[0200] The local feature aggregation process based on the graph attention neural network mechanism is expressed as:
[0201]
[0202] in, is the meta-path p m For embedding representation of heterogeneous knowledge graph G t The importance weight of is a set of local features;
[0203] Normalized meta-path weight coefficient It is expressed as:
[0204]
[0205] in, For a specific meta-path p m The local feature weights under , are formalized as:
[0206]
[0207] Global feature h t It is expressed as:
[0208]
[0209] Optionally, the temporal knowledge graph embedding unit 430 can also be used to continuously optimize the global feature information of the heterogeneous knowledge graph by using the mutual information maximization loss function to obtain the heterogeneous knowledge graph G at time t. t The final embedding representation H t ;
[0210] Among them, the mutual information maximization loss function is expressed as:
[0211]
[0212] Among them, N and M are the number of positive and negative samples, E (X,A) and For positive instances (X, A) and negative instances The mathematical expectation of .
[0213] like Figure 5 As shown, the embodiment of the present invention also provides a working framework diagram of a knowledge tracking system. For other corresponding descriptions of the functional modules involved, please refer to Figure 1 The corresponding description of the method shown will not be repeated here.
[0214] Those skilled in the art can clearly understand that the specific working processes of the systems, devices, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and for the sake of brevity, they are not further described here.
[0215] In addition, the functional units in various embodiments of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
[0216] Those skilled in the art can understand that if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can essentially or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, which includes a number of instructions to enable a computing device (such as a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention when running the instructions. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.
[0217] Alternatively, all or part of the steps of implementing the aforementioned method embodiments may be accomplished by hardware associated with program instructions (such as a computing device such as a personal computer, a server, or a network device), and the program instructions may be stored in a computer-readable storage medium. When the program instructions are executed by a processor of a computing device, the computing device executes all or part of the steps of the methods described in the embodiments of the present invention.
[0218] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that within the spirit and principles of the present invention, the technical solutions described in the aforementioned embodiments can still be modified, or some or all of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate from the protection scope of the present invention.
Claims
1. A knowledge tracking method, characterized in that: The method comprises: Construct a set of temporal heterogeneous graphs to characterize students' knowledge learning; Completing the missing data in the time series heterogeneous graph set to obtain a long time series knowledge evolution sequence; Performing vector representation on each node and relationship in the long time series knowledge evolution sequence to obtain an embedding vector; Inputting the embedding vector into a preset time series recurrent neural network model to learn the dynamic evolution pattern of heterogeneous knowledge graphs of different time series; Based on the dynamic evolution model, predict the students' learning of new knowledge points in the future.
2. The method according to claim 1, characterized in that The construction of a set of temporal heterogeneous graphs for characterizing students' knowledge learning situations includes: Acquire intrinsic interaction data corresponding to a plurality of different moments, wherein the intrinsic interaction data includes student data, exercise data, and knowledge point data; Constructing a heterogeneous knowledge graph using the intrinsic interaction data corresponding to a plurality of different moments; Aggregate the heterogeneous knowledge graphs constructed at multiple different times into the temporal heterogeneous graph set G = (G 1 , G 2 , …, G t );Among them, G t is the heterogeneous knowledge graph constructed at time t.
3. The method according to claim 2, characterized in that The method of completing the missing data in the time series heterogeneous graph set to obtain a long time series knowledge evolution sequence includes: The missing data in the temporal heterogeneous graph set is completed by using a generative technology based on deepening intensity learning; the missing data includes the temporal heterogeneous graph (G) in the time period [t+1, ..., t+n-1] t+1 , …, G t+n-1 )’s edge data; Get the long time series knowledge evolution sequence G′=(G 1 , G 2 , …, G t , G t+1 , …, G t+n-1 ).
4. The method according to claim 2, characterized in that: Each node and relationship in the long time series knowledge evolution sequence is represented by a vector to obtain an embedded vector, including: Using a graph convolutional neural network mechanism to learn the local features of the heterogeneous knowledge graph corresponding to each moment in the long temporal knowledge evolution sequence; The graph attention neural network mechanism is used to aggregate local features under different meta-paths to obtain the global features of the heterogeneous knowledge graph corresponding to each moment; The mutual information maximization mechanism is used to learn the global features of positive samples and negative samples, and the vector representation H of each node and relationship in the heterogeneous knowledge graph corresponding to each moment in the long time series knowledge evolution sequence is obtained. t+n-1 ).
5. The method according to claim 3, characterized in that: The predicting of students' learning of future new knowledge points based on the dynamic evolution model includes: Based on the dynamic evolution model, the multi-layer perceptron network mechanism is used to predict the heterogeneous knowledge graph G at time t+n. t+n Link relationship; If the link relationship includes a target student node edge connecting a target new knowledge point node, it is considered that the target student is able to master the target new knowledge point.
6. The method according to claim 2, characterized in that The constructing a heterogeneous knowledge graph using the intrinsic interaction data corresponding to multiple different moments includes: Using the intrinsic interaction data corresponding to multiple different moments, a heterogeneous knowledge graph G including student nodes, exercise nodes, knowledge point nodes and edge connection relationships between any two nodes is constructed. t =(V t , E t ); Among them, G t is the heterogeneous knowledge graph at time t, V t is the node set, E t is a set of edges; each node v∈V t belongs to a specific node type in the node type set T, ψ(v)∈T; each edge e∈E t A specific edge type belongs to the set of node types R, ψ(e)∈R.
7. The method according to claim 3, characterized in that The method of using a generative technology based on deepening intensity learning to complete missing data in the temporal heterogeneous graph set includes: The Markov decision method is used to simulate and update the heterogeneous knowledge graph; the structure reward function and the adversarial reward function are calculated using a generative technology based on deep intensity learning, and the topological structure (G t+1 , …, G t+n-1 )’s edge data: Wherein, the use of the Markov decision method to simulate and update the heterogeneous knowledge graph includes: The edge data completion process of the heterogeneous knowledge graph is formalized as a Markov decision process: MDP=<S,A,P,R,r> ; The completion process of the temporal heterogeneous graph set is the state transition sequence: (s0, a0, r0, ..., s n , a n , r n ); Each simulation update process can be expressed as: Where S = {s i } is the set of all heterogeneous knowledge graph states; A = {a i } is the activity set; P is the state transition operation; R(s t ) is the arrival state s t The reward is r, the decay coefficient; s n The heterogeneous knowledge graph is finally generated; The method of calculating the structural reward function and the adversarial reward function using a generative technique based on deep strength learning includes: The structural reward function is calculated using the following formula: Among them, λ is the reward coefficient, β is the direct reward, ε is the threshold for activity update, sim(s t ,s f ) is used to calculate the heterogeneous knowledge graph in the current state s t and the final state s f The difference is formalized as: in, and They are respectively the knowledge graph in the current state s t and the final state s f The vector representation of ; The adversarial reward function is calculated using the following formula: Among them, π θ is the policy network, D φ is the discriminator network, x is the heterogeneous knowledge graph input, P data For data distribution.
8. The method according to claim 4, characterized in that The method of using a graph convolutional neural network mechanism to learn the local features of the heterogeneous knowledge graph corresponding to each moment in the long temporal knowledge evolution sequence includes: Under the meta-path, similarity measurement is performed on any two nodes in the heterogeneous knowledge graph to convert the heterogeneous knowledge graph into an isomorphic graph or a bipartite graph, and the local features of the heterogeneous knowledge graph are captured using a graph convolutional network mechanism; The step of measuring the similarity between any two nodes in the knowledge heterogeneous graph includes: The knowledge heterogeneous graph G at time t t And the set of meta-paths P = {p1, p2, ..., p M Any two nodes v of i and v j The similarity is defined as sim(v i , v j ); Among them, v i→j ∈p m is node v i and v j In the metapath p m The following example pairs: β m is the meta-path p m The attention weight of The heterogeneous knowledge graph is converted into a homogeneous graph or a bipartite graph, and the local features of the heterogeneous knowledge graph are captured using a graph convolutional network mechanism, including: Heterogeneous knowledge graph G at time t t is converted into an isomorphic graph or a bipartite graph Among them, each element Determine the knowledge graph adjacency matrix and node feature matrix X t , using graph convolutional networks to capture local feature representations of graphs Formally: Among them, W (0) ∈R d×H is the weight matrix of the input layer and the hidden layer; W (1) ∈R H×F is the weight matrix from the hidden layer to the output layer; σ is the sigmoid activation function; And / or, the method of using the graph attention neural network mechanism to aggregate local features under different meta-paths to obtain the global features of the heterogeneous knowledge graph corresponding to each moment includes: Use graph attention neural network mechanism to aggregate different meta-paths P = {p1, p2, ..., p M } to embed local features under , in order to obtain global features; The local feature aggregation process based on the graph attention neural network mechanism is expressed as: in, is the meta-path p m For embedding representation of heterogeneous knowledge graph G t The importance weight of is a set of local features; Normalized meta-path weight coefficient It is expressed as: in, For a specific metapath p m The local feature weights under , are formalized as: The global feature h t It is expressed as:
9. The method according to claim 8, characterized in that The method of learning the global features of positive samples and negative samples by using the mutual information maximization mechanism to obtain the vector representation of each node and relationship in the heterogeneous knowledge graph corresponding to each moment in the long time series knowledge evolution sequence includes: The mutual information maximization loss function is used to continuously optimize the global feature information of the heterogeneous knowledge graph, and the heterogeneous knowledge graph G at time t is obtained. t The final embedding representation H t ; Among them, the mutual information maximization loss function is expressed as: Among them, N and M are the number of positive and negative samples, E (X,A) and For positive instances (X, A) and negative instances The mathematical expectation of .
10. A knowledge tracking system, characterized in that: The system comprises: A temporal knowledge graph construction unit, used to construct a temporal heterogeneous graph set for representing students' knowledge learning status; A dynamic knowledge graph completion unit, used to complete the missing data in the temporal heterogeneous graph set to obtain a long temporal knowledge evolution sequence; A temporal knowledge graph embedding unit, used to vectorize each node and relationship in the long temporal knowledge evolution sequence to obtain an embedding vector; A dynamic evolution tracking unit, used for inputting the embedding vector into a preset time series recurrent neural network model to learn the dynamic evolution pattern of heterogeneous knowledge graphs of different time series; The knowledge learning prediction unit is used to predict students' learning of future new knowledge points based on the dynamic evolution model.
Citation Information
Cited By
Knowledge tracking method and system based on reinforcement learning and negative sampling optimization
CN119670867A
A knowledge tracking method and system based on reinforcement learning and negative sampling optimization
CN119670867B
