Online learning content recommendation method and system based on knowledge tracking
The knowledge tracking method through graph embedding and multi-layer attention mechanism solves the problem of unreasonable learning content recommendation in the existing technology, achieves more accurate and personalized online learning content recommendation, and improves the learning effect.
Patent Information
- Application Number
- CN202111509663.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-10
AI Technical Summary
Existing online learning content recommendation methods cannot effectively capture long-term dependencies in exercise sequences and the knowledge evolution model is unclear, resulting in unreasonable learning content recommendations and the inability to provide personalized guidance for student learning.
A knowledge tracking method based on graph embedding and multi-layer attention mechanism is adopted. By building a knowledge tracking model, the graph structure composed of the question sequence is obtained for graph embedding. Combining the embedding of questions and time intervals, the multi-layer attention model is input to predict knowledge. Click on mastery and recommend appropriate learning content.
It improves the accuracy and personalization of learning content recommendations, can better provide intelligent learning suggestions based on changes in students' knowledge status, and enhances learning effects.
Smart Images

Figure CN114385910B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of educational data mining, and in particular to an online learning content recommendation method and system based on knowledge tracking. Background Art
[0002] The statements in this section merely mention background art related to the present invention and do not necessarily constitute prior art.
[0003] With the rapid development of science and technology in recent years, information technology has become popular in the field of education, and educational tools and learning methods have undergone tremendous changes. Online learning methods such as Massive Open Online Courses have become a common phenomenon. At present, online education has achieved the same effect as traditional learning and has gradually become a popular learning method. However, online learning courses lack the ability to model the knowledge status of different students, which can easily lead to rigid learning content for students.
[0004] Knowledge tracking is one of the main research directions of personalized learning. Knowledge tracking can automatically track the changes in students' learning status in the next period of time based on their past learning records, and then predict the knowledge points that students should learn in the future. Knowledge tracking is of fundamental importance in the wide application of education, and is widely used in MOOCs, intelligent tutoring systems, educational games, and learning management systems. Existing methods for solving knowledge tracking mainly include Bayesian network-based and deep learning-based methods, but these methods and models generally have some shortcomings: (1) Only one hidden state is used to represent a knowledge state, and the long-term dependencies in an exercise sequence cannot be captured; (2) The knowledge evolution model is unclear, which limits their ability to represent the correlation between learning concepts.
[0005] The inventors have discovered that existing learning tutoring software has unreasonable learning content recommendations, for example: recommending questions with a higher difficulty coefficient to students who have not mastered the knowledge points, repeatedly recommending questions with a lower difficulty coefficient for the same knowledge point to students who have already mastered the knowledge points, or recommending new knowledge points without comprehensively considering the students' existing knowledge point reserves. Summary of the invention
[0006] In order to address the shortcomings of the prior art, the present invention provides an online learning content recommendation method and system based on knowledge tracking; proposes a knowledge tracking method and system based on graph embedding and a multi-layer attention mechanism, and constructs a knowledge tracking model based on graph embedding and a multi-layer attention mechanism, which optimizes the prediction results, accelerates the convergence speed of the model, and can better guide students' learning in a personalized way according to the prediction results.
[0007] In a first aspect, the present invention provides an online learning content recommendation method based on knowledge tracing;
[0008] Online learning content recommendation method based on knowledge tracking, including:
[0009] Obtain the question sequence obtained during the online learning process to form a graph structure;
[0010] Performing graph embedding on the graph structure to obtain embedding of the question;
[0011] Encode the time interval between answering each question into an embedding with the same time interval as the question embedding dimension;
[0012] The embedding of the question and the embedding of the time interval are combined and then input into the multi-layer attention model to predict the mastery of the current knowledge point of the online learning content, and recommend the question corresponding to the current knowledge point or the learning content corresponding to the next related knowledge point based on the mastery of the current knowledge point.
[0013] In a second aspect, the present invention provides an online learning content recommendation system based on knowledge tracking;
[0014] Online learning content recommendation system based on knowledge tracking, including:
[0015] An acquisition module is configured to: acquire a sequence of questions obtained during the online learning process to form a graph structure;
[0016] A graph embedding module is configured to: embed the graph structure to obtain an embedding of the question;
[0017] An encoding module, configured to: encode the time interval between answers to each question into an embedding with a time interval having the same dimension as the question embedding;
[0018] The recommendation module is configured to combine the embedding of the question and the embedding of the time interval, and then input them into the multi-layer attention model to predict the mastery of the current knowledge point of the online learning content, and recommend the question corresponding to the current knowledge point or recommend the learning content corresponding to the next related knowledge point based on the mastery of the current knowledge point.
[0019] In a third aspect, the present invention further provides an electronic device, comprising:
[0020] a memory for non-transitory storage of computer-readable instructions; and
[0021] a processor for executing the computer readable instructions,
[0022] When the computer-readable instructions are executed by the processor, the method described in the first aspect is executed.
[0023] In a fourth aspect, the present invention further provides a storage medium that non-temporarily stores computer-readable instructions, wherein when the non-temporary computer-readable instructions are executed by a computer, the instructions of the method described in the first aspect are executed.
[0024] In a fifth aspect, the present invention further provides a computer program product, comprising a computer program, wherein the computer program is used to implement the method described in the first aspect when running on one or more processors.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] The present invention takes into account that students are affected by multiple factors when learning in reality and that the relationship between various problems should not be a simple linear relationship. The graph embedding method is used to construct the embedding of the problem. Compared with previous methods, the graph embedding takes into account the impact of various factors related to the problem on students during the learning process, which is closer to the real learning process. The present invention takes into account the difficulty of data prediction and classification at a fine-grained level, adopts a multi-layer attention mechanism method, integrates problem embedding and time interval embedding, fully explores the correlation between various features, and can effectively improve the accuracy of classification; without artificially determining feature labels, the accuracy of prediction results can be improved.
[0027] Through knowledge tracing, students' mastery of the current knowledge points is evaluated, and questions with a difficulty coefficient matching the current knowledge points or basic questions of the next knowledge points related to the current knowledge points are recommended based on the mastery of the current knowledge points, so as to provide personalized adaptive suggestions to each student and provide intelligent learning services, which is of great significance. This study aims to mine students' historical learning records and interaction records, analyze students' learning status, predict learning outcomes, and provide students with personalized teaching services to promote their personal development. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0029] Figure 1 This is a flow chart of Embodiment 1 of the present invention;
[0030] Figure 2 It is a framework diagram of the knowledge tracking method described in the first embodiment of the present invention;
[0031] Figure 3 This is a data flow chart of the graph embedding method processing in Embodiment 1 of the present invention;
[0032] Figure 4This is a schematic diagram of the calculation process of the multi-layer attention mechanism module in Embodiment 1 of the present invention;
[0033] Figure 5 This is a visualization effect diagram of the knowledge tracking results of Example 1 of the present invention. DETAILED DESCRIPTION
[0034] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0035] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0036] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0037] In this embodiment, all data is obtained in compliance with laws and regulations and based on the user's consent, and is used legally.
[0038] Embodiment 1
[0039] This embodiment provides an online learning content recommendation method based on knowledge tracking;
[0040] like Figure 1 and Figure 2 As shown in FIG. 1 , the online learning content recommendation method based on knowledge tracking includes:
[0041] S101: Acquire the question sequence obtained during the online learning process to form a graph structure;
[0042] S102: performing graph embedding on the graph structure to obtain embedding of the question;
[0043] S103: Encode the time interval between answering each question into an embedding with the same time interval as the question embedding dimension;
[0044] S104: The embedding of the question and the embedding of the time interval are combined and then input into the multi-layer attention model to predict the mastery of the current knowledge point of the online learning content, and recommend the question corresponding to the current knowledge point or the learning content corresponding to the next related knowledge point based on the mastery of the current knowledge point.
[0045] Furthermore, the step S101: obtaining a sequence of questions obtained during the online learning process to form a graph structure specifically includes:
[0046] Set a sliding window to obtain the historical time series of questions that have been answered continuously for a period exceeding the set time period from the historical question answering records;
[0047] From the historical question-solving time series selected by the sliding window, select each question as a node, connect the nodes corresponding to two consecutive questions with directed edges, calculate the frequency of answering two consecutive questions correctly based on several historical question-solving records, and use the frequency value as the weight of the corresponding directed edge to obtain a weighted directed graph.
[0048] Furthermore, the S102: embedding the graph structure to obtain the embedding of the question specifically includes:
[0049] S1021: Obtain a node sequence according to the weighted directed graph;
[0050] S1022: Obtain preliminary topic embedding for the node sequence;
[0051] S1023: Filling the preliminary question embedding to obtain the final question embedding;
[0052] S1024: Embed the final question and input it into a two-layer fully connected neural network to obtain a final question embedding representation vector.
[0053] Furthermore, the step S1021: obtaining a node sequence according to the weighted directed graph specifically includes:
[0054] Use the node2vec algorithm to process the weighted directed graph and obtain the node sequence.
[0055] Furthermore, the step S1022: obtaining embedding of the question for the node sequence specifically includes:
[0056] Use the Skip-Gram algorithm to get the embedding of the question for the node sequence.
[0057] Furthermore, the step S1023: filling the preliminary topic embedding to obtain the final topic embedding specifically includes:
[0058] The preliminary topic embedding is supplemented with the topic embeddings of other categories to obtain the final topic embedding;
[0059] Among them, other categories of question embedding include: the knowledge point to which the question belongs, the reaction time for answering the question, and the degree to which students feel bored with the question.
[0060] In the process of using graph embedding methods to process student data, the questions in the student's answer sequence are connected in order into a graph, and weights are assigned to the edges according to the frequency of correct and incorrect answers. The resulting weighted directed graph is then used using a random walk algorithm to obtain a preliminary embedding, and then the weights of the influence of different types of question attributes on them are collected and calculated, and the final question embedding is obtained after aggregation.
[0061] For example, the learning history data obtained by students during online learning is collected, and the embedding matrix of the questions is obtained using the graph embedding method, such as Figure 3 shown.
[0062] Among them, the specific operation of using the graph embedding method to obtain the embedding matrix of the question is as follows:
[0063] The primary goal is to obtain a graph G = (U, E), where V and E are the node set and edge set, and graph embedding is to learn The low-dimensional representation of each node u∈U in U is obtained, and then each node in U is represented as a d-dimensional vector. First, the present invention constructs a sequence based on the learning behavior of students in the data set. However, because the students' historical learning records are too many and have errors, in actual operation, the present invention sets a sliding window and uses the students' time to do the questions as the screening criteria of the sliding window. After calculation, the questions with a time of more than 1000ms are taken into consideration, and the sequence X is obtained. 1 ,X 2 ,...,X n .
[0064] After screening the student's question sequence, the present invention connects two consecutive questions with a directed edge, such as Figure 3 As shown in , when student A has answered the first and second questions consecutively, the present invention connects them. Then, based on the student's historical record of answering questions, the present invention considers the frequency of answering each question correctly in succession and sets it as the corresponding edge weight w. After obtaining a weighted directed graph with questions as nodes, the node2vec algorithm is first used to obtain the node sequence, and the probability of random walk sampling is:
[0065]
[0066] u i represents the i-th node visited from the source node, Φ αβ represents the unnormalized dedicated probability between a and b. However, when Φ αβWhen it is completely equal to the static weight w of the edge between two points, the random walk will deviate, so the two parameters p and z are used to guide the orderly random walk. When (χ, α) is traversed and it is at α, the next node is β's Φ αβ =Γ pz (χ,α):
[0067]
[0068] h χα represents the shortest path distance between χ and α, and h χα The value must be one of {0,1,2}.
[0069] Then get Figure 3 The node sequence shown.
[0070] The present invention uses the Skip-Gram algorithm to learn embedding, which needs to optimize the following objective function, which is conditioned on the feature representation of node u and maximizes the log probability of its network neighborhood, giving the objective function:
[0071]
[0072] According to the independent assumption, the present invention can obtain the following formula, where ξ is the size of the context window in the node:
[0073]
[0074] Finally, using negative sampling, the objective function can be transformed into the following:
[0075]
[0076] U - (u i ) is u i negative samples, σ represents the sigmid function.
[0077] In this step, the present invention obtains preliminary question embedding. However, when students do not have enough historical interaction records and there is too much randomness in answering questions during practice, the accuracy of prediction will be reduced. In order to solve this problem, the present invention considers giving different weights to other information related to the question during learning, such as the knowledge point to which the question belongs, the reaction time for answering the question, and the degree to which the student feels bored with the question, according to their importance, and then weighting them into the question embedding to obtain a new embedding. Figure 3 It is a process of weighting according to information.
[0078] Given a topic u, the present invention uses Represents the embedding of topic u, using represents the embedding of the sth type of information of the topic. Then, for a topic u with n types of other information, the present invention has n+1 vectors where d is the dimension of the embedding. Then set is the weight matrix, Represents the weight of class s information, and uses represents the weight of the topic u itself, then the final embedding D u as follows:
[0079]
[0080] To prevent is 0, and the present invention uses replace To calculate, the present invention will be for the node r and its context node u in the training data, the present invention uses To represent the embedding of node r, y is its label, then the objective function can be obtained as:
[0081] f(u,r,y)=-[ylog(σ(D u T L r ))+(1-y)log(1-σ(D u T L r ))]
[0082] Then, the present invention embeds the final D u , and input it into a two-layer fully connected neural network. The title embedding is obtained, expressed as u i ∈U.
[0083] Furthermore, the step S103: encoding the time interval between answering each question into an embedding with the same time interval as the question embedding dimension specifically includes:
[0084] The time interval between answering each question is encoded into an embedding with the same time interval as the question embedding dimension using hot encoding;
[0085] The embedding of the time interval is input into a two-layer fully connected neural network to obtain the final time interval embedding representation vector.
[0086] For example, after a student has learned a knowledge point, the interval between each question is different. Then, for the same knowledge point, the interval between questions is different, which will have different effects on the accuracy of the final question. Therefore, the present invention uses a unique hot encoding method to convert the interval value of each question under each knowledge point into a hot vector. The interval time of the question with the earliest question time is its question reaction time, and then a two-layer fully connected neural network is used to convert the time feature to obtain the time interval embedding where t j =t 1 ,t 2 ,...,t n .
[0087] Furthermore, the S104: combining the embedding of the question and the embedding of the time interval, and then inputting them into the multi-layer attention model, predicting the mastery of the current knowledge point of the online learning content, and recommending the question corresponding to the current knowledge point or recommending the learning content corresponding to the next related knowledge point according to the mastery of the current knowledge point; specifically includes:
[0088] Concatenate the final question embedding representation vector and the final time interval embedding representation vector to obtain the question-time embedding;
[0089] Input the question-time embedding into the multi-layer attention model to train the model. When the loss function value stops decreasing, stop training to obtain the trained multi-layer attention model.
[0090] Based on the trained multi-layer attention model, the current knowledge point mastery of the online learning content is predicted, and questions of corresponding difficulty level of the current knowledge point or learning content corresponding to the next related knowledge point are recommended based on the current knowledge point mastery.
[0091] For example, the question embedding and the time interval embedding are combined and considered as an integrated question-time embedding, which is defined as So within n time intervals Then, a multi-layer attention mechanism is used to calculate it and obtain the current mastery of knowledge points in the predicted online learning content.
[0092] Furthermore, if Figure 2 As shown, the multi-layer attention model includes: an encoder and a decoder connected in sequence;
[0093] The encoder comprises: a first question attention mechanism module, a first time attention mechanism module and a first gating mechanism module; an output end of the first question attention mechanism module and an output end of the first time attention mechanism module are both connected to an input end of the first gating mechanism module;
[0094] The decoder includes: a second question attention mechanism module, a second time attention mechanism module and a second gating mechanism module; the output end of the second question attention mechanism module and the output end of the second time attention mechanism module are both connected to the input end of the second gating mechanism module.
[0095] The working principles of the first question attention mechanism module and the second question attention mechanism module are consistent; wherein, the first question attention mechanism module is used to learn the association between different vertices in the question and time embedding, and assign different weights to different vertices in different time states.
[0096] Furthermore, the first question attention mechanism module is used to calculate the weighted sum of all vertices;
[0097] Concatenate the hidden state of attention with the question-time embedding and use inner product operation to calculate the correlation between vertices;
[0098] Normalize the correlation between vertices, get the attention score, and then update the hidden state of attention;
[0099] A single attention mechanism is expanded into multiple parallel multi-layer attention mechanisms, and multiple different parallel attention mechanisms are connected with different projections.
[0100] Furthermore, the working principles of the first-time attention mechanism module and the second-time attention mechanism module are consistent. The first-time attention mechanism module is used to connect the hidden states of the students' overall mastery of different knowledge points and the time interval lengths of different questions in the current time interval with the question-time embedding to calculate the attention score; after obtaining the attention score, the hidden state is updated.
[0101] Furthermore, the working principles of the first gating mechanism module and the second gating mechanism module are consistent; the first gating mechanism module is used to integrate the question attention mechanism and the time interval attention mechanism; the matrix obtained by the attention layer representing the student's mastery of the current knowledge point and the question-time interval embedding after the next time interval are inner-producted to obtain the student's current knowledge point mastery score in the next time interval.
[0102] The first question attention mechanism module is used to model the correlation between questions;
[0103] The first temporal attention mechanism module is used to model non-linear time interval correlation;
[0104] The first gated fusion mechanism module combines the information extracted by the two, calculates and outputs the result.
[0105] Furthermore, if Figure 5 As shown, the method also includes: after completing the knowledge tracking process, visualizing the knowledge tracking results to guide students' learning.
[0106] The visualization is a matrix heat map with different shades of color. Each square represents the mastery of a certain exercise under a certain knowledge point. The darker the color, the higher the error rate.
[0107] The worse you do on this question, the worse you have learned the knowledge point corresponding to the row with the largest number of darker blocks, and the more you need to repeatedly recommend learning content for the current knowledge point.
[0108] Among them, Figure 4 As shown, the specific operations of calculating it using the multi-layer attention mechanism are as follows:
[0109] The encoder and decoder in the multi-layer attention mechanism module each include a question attention mechanism, a temporal attention mechanism and a gating mechanism. The present invention represents the input of the εth block in the attention mechanism as O ε-1 , where vertex u i At time node t j The hidden state at is represented as Then in the εth block, its output is represented as O q ε and O t ε , vertex u i The hidden state at the time node is expressed as and The output of the εth block aggregated by the gating mechanism is represented as O ε .
[0110] The present invention expresses the nonlinear change as:
[0111] f(x)=Relu(xW+b)
[0112] W, b are learnable parameters and Relu is the activation function.
[0113] (1) Question Attention Mechanism:
[0114] The final right or wrong result of the question is affected by multiple factors such as the student's own learning situation and the difficulty of the question, and this influence is dynamic and will change over time. In order to model these different features, the present invention sets up a question attention mechanism to adaptively learn the relationship between different vertices in the question-time embedding, and assign different weights to different vertices in different time states. j The vertex u i , the present invention calculates the weighted sum of all vertices as:
[0115]
[0116] U is the set of all vertices, Δ ui,u is vertex u to vertex u i The attention scores of importance, the sum of attention scores is 1.
[0117] In a time interval, the current student's learning state and the structure of the graph formed by the questions will affect the correlation between vertices. Therefore, based on this situation, the present invention also considers the overall accuracy of all questions and the graph structure of different questions to learn the attention score. Specifically, the present invention connects the hidden state of attention with the question-time embedding, and uses the inner product operation method to calculate the correlation between vertices:
[0118]
[0119] × means connecting the two, <·> means inner product operation, and 2d is The connected dimension is then transformed into g through softmax. ui,u Normalized to:
[0120]
[0121] Get the attention score Δ ui,u After that, update the hidden state of attention.
[0122] Then the present invention expands the single attention mechanism into λ parallel multi-layer attention mechanisms, using λ different parallel attention mechanisms connected with different learnable projections. The formula is as follows:
[0123]
[0124]
[0125]
[0126] || represents the concatenation of multiple single-layer attention mechanisms. Represents three different nonlinear projections of λ multi-layer attention mechanisms, whose output dimension is m=d / λ.
[0127] (2) Temporal Attention Mechanism:
[0128] At different time intervals, the specific correct or incorrect situations of each question of the same knowledge point are different for students, and the correlation coefficient changes nonlinearly with the increase of the time interval. In order to model it, the present invention also uses a multi-layer attention mechanism to adaptively model the nonlinear correlation of different time intervals, and the correlation is affected by the overall learning state of the students in the current time interval and the length of the time interval of different questions. Similarly, the present invention connects its hidden state and question-time embedding to calculate the attention score, and for vertex u i For example, time nodes t and t j The correlation between them is defined as:
[0129]
[0130]
[0131] Represents t i The correlation between t and is the attention score of the λth layer in the multi-layer attention mechanism, which represents the time interval t to t j The importance of and represents two different learnable transformations, Indicates t j Therefore, only the information of the time points earlier than the target time point is considered to realize the causal relationship. i At time interval t j The updated hidden status is as follows:
[0132]
[0133] represents a nonlinear projection, and the learning parameters of all formulas are shared in the calculation.
[0134] (3) Gating mechanism:
[0135] The learning state of a student after a certain time interval is correlated with his learning state in the previous time intervals, and is also related to other questions he practices under the same knowledge point. The present invention uses a gating mechanism to adaptively integrate the question attention mechanism and the time interval attention mechanism. The output of the question attention mechanism and the output of the time attention mechanism in the ε-th layer attention module are respectively represented as O q ε and O t ε , all belong to Then the formula to aggregate them is:
[0136]
[0137]
[0138] Among them, W and b are both learnable parameters, ⊙ represents the element-wise product, σ() is the sigmoid function, and z is the gate. The gated fusion mechanism adaptively controls the correlation between the problem and the time interval at each vertex. The output matrix of the ε-th layer attention module is the matrix representing the student's learning status. Then the present invention uses the student's learning status and the question-time interval embedding after the next time interval to do a dot product* to predict the student's performance after the n+1th time interval.
[0139]
[0140] Loss function: In order to learn all the parameters in the model and the embedding matrix during training, the present invention chooses to predict and the actual answer X n+1 The cross entropy logarithmic loss between is used as the loss function of the model of the present invention, and its formula is as follows:
[0141]
[0142] Then, after students' knowledge tracking is realized based on the knowledge tracking method provided in this embodiment, the results of knowledge tracking can be visualized by using visualization methods such as heat maps, and corresponding personalized learning plans can be formulated according to the students' mastery of each question and knowledge point in the visualization results.
[0143] The overall idea of this embodiment is: the system collects the question sequence obtained by students during online learning, connects the questions in the student answer sequence into a graph in order, assigns weights to the edges according to the frequency of correct and incorrect answers, and uses the random walk algorithm to obtain a preliminary embedding of the obtained weighted directed graph, and then collects and calculates the weights of the influence of different types of question attributes on it, and obtains the final question embedding after aggregation. The interval time between answering each question is encoded into a time embedding with the same dimension as the question embedding using hot encoding. The embedding of the question and the embedding of the time interval are combined, and then input into the multi-layer attention module. The multi-layer attention mechanism includes a question attention layer, a time attention layer, and a gated fusion layer. The question attention layer is used to model the correlation between questions, the time attention layer is used to model the nonlinear time interval correlation, and the gated fusion layer adaptively combines the information extracted by the two to calculate and predict the student's future learning status. Using the knowledge tracking results obtained above, the knowledge tracking results are visualized to guide students' learning.
[0144] The question sequences obtained by students during online learning are collected to form a weighted directed graph, and the embedding of the questions is obtained using the graph embedding method; the interval between answering each question is encoded into a time embedding with the same dimension as the question embedding using the hot encoding method; the question embedding and the time interval embedding are combined and then input into the multi-layer attention module to predict the student's future learning status; the knowledge tracking results are visualized to guide students' learning. Compared with previous methods, the use of the graph embedding method considers the impact of various factors related to the problem on students during the learning process, which is closer to the real learning process. Considering the difficulty of data prediction and classification under fine-grainedness, the multi-layer attention mechanism method is adopted to integrate question embedding and time interval embedding, fully explore the correlation between various features, and effectively improve the classification accuracy; without manually determining feature labels, the accuracy of the prediction results can be improved.
[0145] Embodiment 2
[0146] This embodiment provides an online learning content recommendation system based on knowledge tracking;
[0147] Online learning content recommendation system based on knowledge tracking, including:
[0148] An acquisition module is configured to: acquire a sequence of questions obtained during the online learning process to form a graph structure;
[0149] A graph embedding module is configured to: embed the graph structure to obtain an embedding of the question;
[0150] An encoding module, configured to: encode the time interval between answers to each question into an embedding with a time interval having the same dimension as the question embedding;
[0151] The recommendation module is configured to combine the embedding of the question and the embedding of the time interval, and then input them into the multi-layer attention model to predict the mastery of the current knowledge point of the online learning content, and recommend the question corresponding to the current knowledge point or recommend the learning content corresponding to the next related knowledge point based on the mastery of the current knowledge point.
[0152] It should be noted that the acquisition module, graph embedding module, encoding module and recommendation module described above correspond to steps S101 to S104 in Embodiment 1, and the examples and application scenarios implemented by the modules and the corresponding steps are the same, but are not limited to the contents disclosed in Embodiment 1. It should be noted that the modules described above as part of the system can be executed in a computer system such as a set of computer executable instructions.
[0153] The description of each embodiment in the above embodiments has different emphases. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0154] The proposed system can be implemented in other ways. For example, the system embodiment described above is only illustrative, and the division of the modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.
[0155] Embodiment 3
[0156] This embodiment also provides an electronic device, including: one or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and the one or more computer programs are stored in the memory. When the electronic device is running, the processor executes the one or more computer programs stored in the memory so that the electronic device executes the method described in the above embodiment one.
[0157] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0158] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0159] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.
[0160] The method in the first embodiment can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
[0161] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0162] Embodiment 4
[0163] This embodiment further provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the method described in the first embodiment is completed.
[0164] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An online learning content recommendation method based on knowledge tracking, characterized by: include: Obtain the question sequence obtained during the online learning process to form a graph structure; Performing graph embedding on the graph structure to obtain embedding of the question; The graph embedding of the graph structure to obtain the embedding of the question specifically includes: obtaining a node sequence according to a weighted directed graph; obtaining a preliminary question embedding for the node sequence; filling the preliminary question embedding to obtain a final question embedding; inputting the final question embedding into a two-layer fully connected neural network to obtain a final question embedding representation vector; The filling of the preliminary question embedding to obtain the final question embedding specifically includes: supplementing the preliminary question embedding with other categories of question embedding to obtain the final question embedding; wherein the other categories of question embedding include: the knowledge point to which the question belongs, the reaction time for answering the question, and the degree to which the student feels bored with the question; The time interval between answering each question is encoded into an embedding of the same time interval as the question embedding dimension. The question embedding and the time interval embedding are combined and then input into a multi-layer attention model to predict the current knowledge point mastery of the online learning content, and recommend the question corresponding to the current knowledge point or the learning content corresponding to the next related knowledge point based on the current knowledge point mastery.
2. The online learning content recommendation method based on knowledge tracking as claimed in claim 1, characterized in that: The question sequence obtained during online learning forms a graph structure; specifically, it includes: Set a sliding window to obtain the historical time series of questions that have been answered continuously for a period exceeding the set time period from the historical question answering records; From the historical question-solving time series selected by the sliding window, select each question as a node, connect the nodes corresponding to two consecutive questions with directed edges, calculate the frequency of answering two consecutive questions correctly based on several historical question-solving records, and use the frequency value as the weight of the corresponding directed edge to obtain a weighted directed graph.
3. The online learning content recommendation method based on knowledge tracking as claimed in claim 1, characterized in that: Encode the time interval between answering each question into an embedding with the same time interval as the question embedding dimension; specifically: The time interval between answering each question is encoded into an embedding with the same time interval as the question embedding dimension using hot encoding; The embedding of the time interval is input into a two-layer fully connected neural network to obtain the final time interval embedding representation vector.
4. The online learning content recommendation method based on knowledge tracking as claimed in claim 1, characterized in that: The embedding of the question and the embedding of the time interval are combined and then input into the multi-layer attention model to predict the mastery of the current knowledge point of the online learning content, and recommend the question corresponding to the current knowledge point or the learning content corresponding to the next related knowledge point based on the mastery of the current knowledge point; specifically, it includes: Concatenate the final question embedding representation vector and the final time interval embedding representation vector to obtain the question-time embedding; Input the question-time embedding into the multi-layer attention model to train the model. When the loss function value stops decreasing, stop training to obtain the trained multi-layer attention model. Based on the trained multi-layer attention model, the current knowledge point mastery of the online learning content is predicted, and questions of corresponding difficulty level of the current knowledge point or learning content corresponding to the next related knowledge point are recommended based on the current knowledge point mastery.
5. The online learning content recommendation method based on knowledge tracking as claimed in claim 4 is characterized in that: The multi-layer attention model includes: an encoder and a decoder connected in sequence; The encoder comprises: a first question attention mechanism module, a first time attention mechanism module and a first gating mechanism module; an output end of the first question attention mechanism module and an output end of the first time attention mechanism module are both connected to an input end of the first gating mechanism module; The decoder includes: a second question attention mechanism module, a second time attention mechanism module and a second gating mechanism module; the output end of the second question attention mechanism module and the output end of the second time attention mechanism module are both connected to the input end of the second gating mechanism module.
6. The online learning content recommendation method based on knowledge tracking as claimed in claim 5, characterized in that: The working principles of the first question attention mechanism module and the second question attention mechanism module are consistent; wherein, the first question attention mechanism module is used to learn the association between different vertices in the question and time embedding, and assign different weights to different vertices in different time states.
7. The online learning content recommendation method based on knowledge tracking as claimed in claim 6, characterized in that: The first question attention mechanism module is used to calculate the weighted sum of all vertices; Concatenate the hidden state of attention with the question-time embedding and use inner product operation to calculate the correlation between vertices; Normalize the correlation between vertices, get the attention score, and then update the hidden state of attention; A single attention mechanism is expanded into multiple parallel multi-layer attention mechanisms, and multiple different parallel attention mechanisms are used to connect with different projections.
8. The online learning content recommendation method based on knowledge tracking as claimed in claim 5, characterized in that: The working principle of the first time attention mechanism module and the second time attention mechanism module is the same. The first time attention mechanism module is used to connect the hidden state of the students' overall mastery of different knowledge points and the time interval length of different questions in the current time interval with the question-time embedding to calculate the attention score; After getting the attention score, update the hidden state.
9. The online learning content recommendation method based on knowledge tracking as claimed in claim 5, characterized in that: The working principles of the first gating mechanism module and the second gating mechanism module are consistent; the first gating mechanism module is used to integrate the question attention mechanism and the time interval attention mechanism; the matrix obtained by the attention layer representing the student's mastery of the current knowledge point and the question-time interval embedding after the next time interval are inner-producted to obtain the student's current knowledge point mastery score in the next time interval.
10. An online learning content recommendation system based on knowledge tracking, characterized by: include: An acquisition module is configured to: acquire a sequence of questions obtained during the online learning process to form a graph structure; A graph embedding module is configured to: perform graph embedding on the graph structure to obtain an embedding of the question; The encoding module is configured to: encode the interval time of answering each question into an embedding of the same time interval as the embedding dimension of the question; the graph embedding of the graph structure to obtain the embedding of the question specifically includes: obtaining a node sequence according to a weighted directed graph; obtaining a preliminary question embedding for the node sequence; filling the preliminary question embedding to obtain a final question embedding; inputting the final question embedding into a two-layer fully connected neural network to obtain a final question embedding representation vector; The filling of the preliminary question embedding to obtain the final question embedding specifically includes: supplementing the preliminary question embedding with other categories of question embedding to obtain the final question embedding; wherein the other categories of question embedding include: the knowledge point to which the question belongs, the reaction time for answering the question, and the degree to which the student feels bored with the question; The recommendation module is configured to combine the embedding of the question and the embedding of the time interval, and then input them into the multi-layer attention model to predict the mastery of the current knowledge point of the online learning content, and recommend the question corresponding to the current knowledge point or recommend the learning content corresponding to the next related knowledge point based on the mastery of the current knowledge point.
11. An electronic device, comprising: a memory for non-transitory storage of computer readable instructions; as well as a processor for executing the computer readable instructions, When the computer-readable instructions are executed by the processor, the method described in any one of claims 1 to 9 is executed.
12. A storage medium, characterized in that it non-temporarily stores computer-readable instructions, wherein: When the non-transitory computer-readable instructions are executed by a computer, the instructions of the method according to any one of claims 1 to 9 are executed.
