Prediction method based on PMKT knowledge tracking model

Through the PMKT model based on pre-training and fine-tuning, combined with the Transformer and BERT architecture, the problem of prediction accuracy of the knowledge tracking model under small sample data is solved, and efficient prediction of students' knowledge status is achieved, especially for new users or new content. Improved accuracy when joining.

CN118673160AInactive Publication Date: 2024-09-20GANSU YIEN TECH CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410835269.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing knowledge tracking models are difficult to accurately predict students' knowledge status under small sample data, and there are problems such as overfitting, outliers and data imbalance. Especially when new users or new content are added, there will be a 'cold start' problem, resulting in incorrect answers. Rate forecasts are inaccurate.

Method used

The PMKT knowledge tracking model based on pre-training and fine-tuning is used, combined with the Transformer and BERT architecture, pre-trained through large-scale online education data, and fine-tuned on the small sample data set, inheriting the weight parameters of the pre-trained model, and freezing some layers. Fine-tuning to adapt knowledge state representation to different systems.

Benefits of technology

It significantly improves the prediction accuracy in small-sample knowledge state tracking tasks, enhances the model's generalization ability to data from different intelligent education systems, effectively solves the 'cold start' problem, and improves the prediction accuracy of learners' cognitive states.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118673160A
    Figure CN118673160A
Patent Text Reader

Abstract

The invention discloses a prediction method based on a PMKT knowledge tracking model, and the method comprises the steps: building a knowledge tracking pre-training model based on an encoder + decoder architecture, an encoder architecture or a decoder architecture, and enabling the knowledge tracking pre-training model to be a knowledge tracking model based on pre-training and parameter fine tuning, wherein the knowledge tracking model comprises an interactive mapping layer, a multi-head attention layer, a feedforward network layer and an output layer which are connected in sequence; and obtaining an interaction sequence of students, and identifying and predicting the question answering sequence through a knowledge tracking model to generate a correctness result of question answering information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of knowledge tracing, and in particular relates to a prediction method based on a PMKT knowledge tracing model. Background Art

[0002] Online education, as an important part of the application of modern information technology in the field of education, has achieved remarkable results. With the help of artificial intelligence technology, online education can provide personalized learning recommendations, intelligent evaluation, etc., thus bringing students an efficient and supportive learning experience. Research on the development and application of online education is crucial to building a high-quality online learning environment, improving the sharing and utilization efficiency of educational resources, and promoting the openness and inclusiveness of education. It will help to create a new networked, digital, personalized, and lifelong education system.

[0003] Knowledge tracing is a key technology in AI-assisted education. Students read the text of exercises and apply knowledge to solve problems, extracting the corresponding knowledge sequence and the interactive sequence of exercises, which can usually be represented as an ordered pair, which represents the question answered by the student at the moment and the student's answer to the question. Generally speaking, 0 and 1 represent wrong and correct answers respectively. By modeling the mastery of exercises, skills or knowledge components, the knowledge status of future students is predicted. That is, the student's historical answer performance is used to predict the probability that the student will answer the question correctly at the next time point. In short, given the student's historical learning performance sequence and the questions that will be done at a certain moment, the probability of the student answering the question correctly is large or small. The prediction result can be used to recommend personalized exercises to students and design personalized learning paths.

[0004] However, students’ learning process and learning status are complex. Research has found that although existing knowledge tracking models have explored some effective strategies from different perspectives, they still fail to achieve accurate predictions on some knowledge tasks. For example, for an education system with only a small amount of data, the limited amount of data will affect the prediction performance of students’ knowledge status. The modeling process may lead to overfitting, outlier problems, and data imbalance, making it difficult to achieve more accurate prediction results. In addition, learning tasks are also diverse, and personalized modeling methods are also required for different learning tasks.

[0005] Intelligent teaching systems use knowledge state tracking technology to identify and record learners' cognitive status, and then provide personalized educational resources and feedback. However, the addition of new users or new content and the deployment of new systems often lead to the system facing a "cold start" problem, that is, a lack of sufficient user interaction data to train and optimize the model, resulting in inaccurate predictions of students' answer accuracy in intelligent teaching systems. Summary of the invention

[0006] In order to solve the above technical problems, the present invention proposes a prediction method based on the PMKT knowledge tracking model to solve the problems existing in the above prior art.

[0007] To achieve the above object, the present invention provides a prediction method based on the PMKT knowledge tracking model, comprising:

[0008] Constructing a knowledge tracking model, wherein the knowledge tracking pre-trained model is an initial knowledge tracking model based on a pre-trained and fine-tuned architecture, wherein the knowledge tracking model includes an interactive mapping layer, a model processing layer, and an output layer connected in sequence;

[0009] The student's interaction sequence is obtained, and the answer question sequence is identified and predicted through the knowledge tracking model to generate the correctness result of the answer question information, wherein the interaction sequence includes the question label, timestamp, knowledge point label, and whether the student's answer is correct or not.

[0010] Optionally, the construction process of the knowledge tracking model includes:

[0011] An initial knowledge tracking model is constructed, online education data and a small sample data set are obtained, the knowledge tracking model is pre-trained through online education, and the pre-trained model is fine-tuned to predict the student knowledge state corresponding to the small sample data, that is, the correctness of the answer information, so as to solve the cold start problem in knowledge tracking; wherein the online education data set includes question data and corresponding answer data, wherein the online education data set and the small sample data set belong to data sets of different online education systems, and the scale of the small sample data set is less than 1 / 1000 of the online education data set.

[0012] Optionally, the fine-tuning step includes:

[0013] Inheriting the weight parameters of the pre-trained model;

[0014] A learning rate is set, and parameters of the pre-trained model are fine-tuned according to the learning rate; during the parameter fine-tuning process, some layers of the pre-trained model are frozen, and parameters of the frozen model are fine-tuned.

[0015] Optionally, during the parameter fine-tuning process, freezing is no longer performed, and the parameters of the pre-trained model are directly fine-tuned to improve the accuracy of fine-tuning.

[0016] Optionally, the knowledge tracking model is constructed based on an encoder+decoder architecture, an encoder architecture, or a decoder architecture.

[0017] Optional knowledge tracking model based on encoder + decoder architecture:

[0018] In the encoder, the encoder inputs the student's interaction sequence through the interaction mapping layer to generate a high-dimensional static interaction representation, and the static interaction representation and the interaction time are used to generate a first representation sequence through the masked attention layer, the feedforward network layer and the normalization layer, and an embedded question sequence is obtained;

[0019] In the decoder, the first representation sequence and the embedded question sequence from the encoder are used as the input of the decoder's cross-attention layer. After being processed by the cross-attention layer, they are processed by the feedforward network layer and the normalization layer to generate the decoder's hidden representation; the decoder's hidden representation is passed through a linear layer to generate a predicted correctness sequence of the answer question information, and compared with the observed target correctness value to calculate the loss value.

[0020] Optional, knowledge tracking model based on encoder architecture:

[0021] It includes the input layer, dropout layer, multi-head attention layer, feedforward network layer and output layer connected in sequence;

[0022] In the input layer, for each student's interaction sequence, the bidirectional context information is used to predict the answer of the interaction sequence, and different sequence embeddings are used in the training and test stages. The test set is masked at the end position, and the masked positions of the training set and the test are added before the masking. During the training process, the loss of the pre-trained model is tracked only by predicting the knowledge of the masked positions in the training set and the test. Based on the interaction embedding under this masking strategy, new position information is added to the interaction sequence.

[0023] The dropout layer is used to filter the answer information and generate a static interaction representation. The multi-head attention layer aggregates the contextual information of the filtered interaction sequence data. The output layer recognizes the aggregated information and generates the corresponding correctness result of the answer information.

[0024] Optional, knowledge tracking model based on decoder architecture:

[0025] It includes the input layer, multi-head attention layer, feedforward network layer and output layer connected in sequence;

[0026] The input sequence of the input layer includes the student's answer record, each answer record includes the question label, timestamp, knowledge point label, and whether the student's answer is correct or not; the embedding vector is generated by inputting the interactive sequence of the input layer, and the embedding vector passes through the multi-head attention layer and the feedforward network layer in turn, and outputs the predicted value through the output layer. Compared with the prior art, the present invention has the following advantages and technical effects:

[0027] The "pre-training + fine-tuning" strategy is combined with the knowledge tracking task to simulate the BERT pre-training process. The knowledge tracking model based on the Transformer and BERT architecture is pre-trained with large-scale online education data, and the parameters obtained by pre-training are saved. Fine-tuning is performed on a small number of data sets. Eight sets of experiments on eight public education data sets verify the generalization ability of the model to different intelligent education system data, and effectively improve the prediction accuracy of learners' cognitive states in small sample knowledge state tracking tasks. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0029] Figure 1 This is a PMKT model architecture diagram of an embodiment of the present invention;

[0030] Figure 2 This is a diagram of the pre-trained Transformer architecture of an embodiment of the present invention;

[0031] Figure 3 This is a diagram of the pre-trained BERT architecture of an embodiment of the present invention;

[0032] Figure 4 This is a flowchart related to pre-training and fine-tuning according to an embodiment of the present invention. DETAILED DESCRIPTION

[0033] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0034] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0035] To solve the cold start problem, this paper proposes a knowledge tracing model based on pre-training and fine-tuning technology, named PMKT (Pre-trained Model for Knowledge Tracing). Figure 1As shown in the figure, the design of the fusion Transformer and BERT architecture is adopted, aiming to pre-train through large-scale student answering interaction data, so as to effectively predict the student's knowledge state. After the pre-training phase is completed, all model parameters except the output layer will be migrated to the fine-tuning phase for the prediction task of the small data set. In this phase, the parameters of the output layer are reset after random initialization, and the parameters inherited from the pre-training phase are used to initialize the knowledge tracking task for the small-scale target data set. This process enables the model to further adjust specific small amounts of interaction data to adapt to and integrate knowledge state representations from different systems.

[0036] Knowledge tracking model based on encoder + decoder architecture:

[0037] The knowledge tracking model based on the encoder + decoder architecture is exemplarily demonstrated. The encoder + decoder architecture uses the Transformer architecture to predict the student's knowledge state, so that it pays attention to the entire historical performance. The weight of attention depends on the similarity between future and past question items, and learns the representation of the underlying Q matrix that associates knowledge components with question items, including the case when multiple knowledge components are associated with one question item. Consider two important factors: the structural characteristics of the learning problem and the elapsed time between problem-solving steps. By considering the problem structure, the model is able to effectively utilize the relationship between different problems. Considering the elapsed time can solve the problem of student forgetting, which is a key factor affecting the knowledge state during the learning process.

[0038] Convert the series to tuple x i =(q i ,a i ) as the model input, q i That is, the questions answered by the students, a i ∈{0,1} indicates whether the answer is correct. The model target is a sequence of correctness estimates a i+1 , represents whether the student correctly solved the next question q i+1 . And use the Transformer encoder-decoder structure to add two auxiliary inputs q i+1 and timestamp t i (measured in hours after x0) to model forgetting behavior. The final prediction target of the model is P = (a i+1 =1|x0,...x i ,t0,...t i ,q i+1 ), the model architecture is as follows Figure 2 shown.

[0039] In the model framework, on the encoder side, the student's interaction sequence (0,x0,x1...x n-1) through the interactive mapping layer to generate a high-dimensional embedding (0,e0,e1...e n-1 ), e i Sequence and interaction timestamps t i The context-dependent representation is learned through the Transformer block to learn the hidden representation sequence h i .

[0040] At the decoder side, h from the encoder i Sequence, embedding problem sequence i+1 and timestamp t i+1 After being processed again by the Transformer block, the decoder hidden representation is generated: The decoder output passes through a linear layer to generate a predicted correct probability sequence and compares it with the observed target correctness value c i+1 Compare to calculate the loss value.

[0041] The interaction mapping layer first creates and randomly initializes an interaction-skill mapping matrix W and a skill embedding matrix S. The matrices in the interaction mapping layer are optimized in the back propagation and the encoder-side input interaction x is calculated. i and decoder input problem q' i (encoded as (q i ,1)) Embedding:

[0042] e i =softmax(W i. )S#(1)

[0043] Among them, W i is the i-th row of W, representing the interaction x i The softmax function normalizes these weights. Each column of S is a vector representation of a potential skill, so the interaction x i The static representation of is the weighted sum of all latent skills.

[0044] The static interaction representation is represented by the mask attention layer. j Transformed into a context-dependent interaction representation h j :

[0045] q j =Qe j ,k j =Ke j ,v j =Ve j #(2)

[0046]

[0047] The masked attention layer extracts the query parameter q by multiplying the static representation with three trainable query matrices Q, K, and V: key matrix and value matrix j , key parameter k j and value parameter v j ,q j and k j can be interpreted as interacting with j Related potential skills, v j is with e j Related knowledge states. Assigned to historical interactions i The attention parameter A ij Including consistency q j k i and time interval offset b(Δt j-i ) two parts, q j k i Indicates e j and e i The degree of overlap of potential skills between j-i ) through interaction j and e i The time interval between the attention weights is adjusted. Represents the normalization parameter used to normalize the attention size.

[0048] Get h j After that, the feedforward layer is used to enhance the nonlinear processing capability of the model, capturing and modeling the complex changes of students’ knowledge status, as shown below:

[0049] FFN(h j )=ReLU(h j W1+b1)W2+b2#(5)

[0050] Where W1 and W2 are weight matrices, and b1 and b2 are bias terms.

[0051] The normalization layer normalizes the output of each sublayer to promote the stability and efficiency of training. The normalization layer is usually placed after the feedforward layer and is also combined with a residual connection. For the input x, the formula of the normalization layer can be expressed as:

[0052]

[0053] where μ is the mean of each feature, σ is the standard deviation of each feature, γ and β are learnable parameters for rescaling and shifting, and ⊙ represents element-wise multiplication.

[0054] Combining the above feed-forward network layer and normalization layer, the output of the Transformer block is expressed as:

[0055] h' j =LayerNorm(FFN(h j )+h j )#(7)

[0056] Knowledge tracking model based on encoder architecture:

[0057] The knowledge tracking model based on the encoder architecture is shown in the following figure. The encoder architecture adopts the BERT architecture. BERT is the encoder module of Transformer. The BERT architecture is integrated with deep knowledge tracking. Figure 3 As shown, the interaction sequence (q i ,a i ) in the correctness of a i , that is, replace a with [MASK] i ,q i That is, the questions answered by the students, a i ∈{0,1} indicates whether the answer is correct. The model predicts the correctness of this small number of randomly masked interactions based on the bidirectional context in the sequence, and the output module obtains the predicted probability of the correctness of each interaction in the sequence.

[0058] (1) Input layer

[0059] For each student-specific interaction sequence (q i ,a i ), proposed two masking strategies: Random Mask and End-Position Mask.

[0060] Random Mask, that is, randomly mark a small part of the input sequence with correctness i The model predicts the correctness of these “[MASK]” positions by considering the bidirectional context while keeping the corresponding question tags q i No change. Assume that given the input sequence (q1,a1),(q2,a2),(q3,a3),...,(q t-1 ,a t-1 ),(q t ,a t ), the random mask sequence of the input model may be (q1,a1),(q2,[MASK]),(q3,a3),...,(q t-1 ,[MASK]),(q t ,a t ).

[0061] End-Position Mask, which generates T sub-sequences from a sequence of length T in the test data, and masks the correctness mark of the last position to be predicted by the model:

[0062] Sequence 1: (q1, [MASK])

[0063] Sequence 2: (q1,a1)→(q2,[MASK])

[0064] Sequence 3: (q1,a1)→(q2,a2)→(q3,[MASK]) ...

[0066] Sequence T: (q1,a1)→(q2,a2)→(q3,a3)→(q T ,[MASK])

[0067] BERT uses bidirectional context information to predict the answer to a given sequence. To avoid cheating in prediction, different sequence embeddings are used in the training and testing phases. The training data is divided into two parts during the training phase. One part uses a random mask, and “[MASK]” replaces 15% of the correctness markers. i , and the other part uses the End-Position Mask. In the testing phase, only the End-Position Mask is used.

[0068] Based on the interaction embedding under the above mask strategy, in the interaction sequence (q i ,a i ) adds sequence position information pos i , so the final embedding of the interaction is x i It is expressed as:

[0069] x i =q i ⊕a i ⊕pos i #(8)

[0070] (2) Dropout Layer

[0071] The dropout technique is applied to randomly set some elements of the embedding vector to 0 to reduce the model's dependence on a single feature and prevent overfitting. i , set the activation to zero with probability p, or keep it with probability 1-p, and Amplify. That is, its representation after dropout is

[0072]

[0073] Where p is the dropout rate. Dropout is applied to each mini-batch during training, while the original activation state is kept during evaluation or testing.

[0074] (3) Transformer layer

[0075] The Multi-Head Attention module allows the model to aggregate contextual information between different positions in the same sequence.

[0076] MultiHead(Q,K,V)=Concat(head1,…head h )W o #(10)

[0077] The attention of each head is:

[0078]

[0079] The attention function is defined as:

[0080]

[0081] Among them, Q, K, V are generated by the interaction x i The query, key, and value matrices obtained through linear transformation are i With the corresponding weight matrix W Q ,W K ,W V Multiplying together, the formula is:

[0082] q j =Qe j ,k j =Ke j ,v j =Ve j #(13)

[0083] The position fully connected feed-forward neural network (Feed Forward Layer) receives the output A from the attention layer i , and perform a nonlinear transformation on it:

[0084] s i =FFN(A i )=ReLU(A i W1+b1)W2+b2#(14)

[0085] Where W1 and W2 are weight matrices, and b1 and b2 are bias terms.

[0086] (4) Output module

[0087] First, the output s of the previous layer is passed through the GELU Dense' dense layer i Provides the necessary nonlinear relationship:

[0088] s i '=GELU(s i )=s i Φ(s i )#(15)

[0089] Among them, Φ(s i ) is i Cumulative distribution function of the Gaussian error function at .

[0090] Then use the normalization layer to stabilize the training process:

[0091]

[0092] Among them, s i ' is the output of the dense layer, μ and σ are the mean and standard deviation of the features, respectively, and γ and β are learnable parameters. After the softmax function, the predicted probability of the correctness of the response corresponding to each interaction in the sequence is obtained:

[0093]

[0094] Among them, z i is the output of the normalization layer, m is the number of output categories, is the prediction score of the i-th class LayerNorm(s i ') to ensure that the output is non-negative and is normalized by dividing by the sum of all category index values ​​so that the sum of all output values ​​is equal to 1, forming a valid probability distribution.

[0095] (5) Mask and loss calculation

[0096] At the output layer, the model predicts the correctness probabilities corresponding to the “[MASK]” positions, and these probabilities are then multiplied with a binary masking layer that sets the “[MASK]” positions to 1 and the rest to 0. Therefore, only the predictions for the masked positions are used for the loss calculation:

[0097]

[0098] Among them, y i is the true label of the masked interaction, is the model's predicted probability of being correct for the masked interaction.

[0099] Pre-training + fine-tuning

[0100] Pre-trained models (PTMs) are pre-trained models on specific original tasks. They aim to become general models in a certain field by learning a series of complex feature hierarchies. After being pre-trained, these models can be retrained or fine-tuned on different but related target tasks to improve the performance of the target task by leveraging the parameters and knowledge learned in the original task. Figure 4 In the field of Natural Language Processing (NLP), pre-training usually adopts self-supervised learning methods, which means that the model uses the intrinsic structure of the text data itself as a supervisory signal for learning, rather than relying on manual annotation. Early pre-training models, such as Word2Vec and Glove, focused on capturing the semantic information of vocabulary, but they were limited in capturing different semantics of context.

[0101] With the advancement of deep learning technology, especially the emergence of the Transformer architecture, the training of deep NLP models has become possible, and iconic deep pre-trained models such as GPT and BERT were proposed in 2018. These Transformer-based models can not only handle the diversity of word meanings, but also understand the complex relationships between words, syntactic structures, and even capture factual knowledge in text. As the model size increases, these large PTMs, with hundreds of millions of parameters, show significant performance on a variety of NLP tasks, even with a small number of samples. By fine-tuning these large-scale pre-trained models, their rich semantic knowledge can be effectively transferred to downstream tasks, resulting in excellent performance in multiple NLP tasks.

[0102] In the field of deep learning, fine-tuning is a technique that uses pre-trained models to accelerate learning for a specific task. Through this process, a source model trained on a large-scale dataset is adjusted to fit a new, smaller target dataset. Specifically, fine-tuning usually follows the following steps:

[0103] (1) Inheriting parameters of the pre-trained model: The target model inherits weight parameters from the source model to preserve the general knowledge learned by the source model.

[0104] (2) Replace the output layer: Since the category of the target task may be different from that of the source model, it is usually necessary to replace the output layer to match the output scale of the new task.

[0105] (3) Fine-tuning parameters: Fine-tuning the inherited parameters usually involves a lower learning rate, especially when the pre-trained model is already well adapted to the source dataset. Fine-tuning can be expressed as an optimization problem, where the optimization goal is to minimize the loss function on the new task. The optimization process usually uses the gradient descent method, which is expressed as:

[0106]

[0107] Among them, θ fine-tune and θ pre Respectively represent the values ​​before and after the parameter update, α is the learning rate, is the gradient of the loss function with respect to the parameters.

[0108] (4) Freezing and fine-tuning: In practical applications, in order to prevent the pre-trained features from being forgotten too quickly, we may choose to freeze the parameters of certain layers of the pre-trained model and only fine-tune the last few layers or specific layers.

[0109] (5) Learning rate adjustment: For those layers that are fine-tuned, a smaller learning rate may be set to ensure a stable learning process and prevent large deviations in the pre-trained parameters.

[0110] This approach demonstrates the universality of features and knowledge that deep learning models can capture, which is a major advantage of deep learning over traditional machine learning methods. Through this process, the target model learns how to adjust the features inherited from the source data to better perform new tasks by training on the target data, thereby achieving knowledge transfer. This approach not only saves a lot of computing resources, but also generally improves the performance of the model on specific tasks, especially when the target data is relatively small.

[0111] Pre-training experiments and analysis:

[0112] 1) Dataset

[0113] The present invention uses several real public datasets, ASSISTments dataset: ASSISTments 2009 (ASSIST09), ASSISTments 2012 (ASSIST12) and ASSISTments 2017 (ASSIST17). It also includes EdNe dataset, KDDcup dataset and Statics2011 dataset.

[0114] 2) Experimental setup

[0115] The experiments in this invention are divided into eight groups of experiments according to the size of the datasets in the pre-training and fine-tuning stages. To evaluate the performance of the pre-training method, a five-fold cross validation was performed on each dataset.

[0116] In the process of loading the model and library in the experiment, we tried to freeze the embedding of knowledge points, questions and answers in the pre-existing network. However, in this experiment, due to the small size of the data set, overfitting problems often occur. To solve this problem, the present invention keeps the weights of the original network unchanged and adjusts the hyperparameters of the model.

[0117] 3) Evaluation Metrics

[0118] The performance evaluation of the model uses the AUC (Area Under Curve) indicator, which is the area under the ROC curve. It represents the probability that the predicted value of the positive example is greater than the predicted value of the negative example when a sample pair consisting of a positive example and a negative example is randomly selected, and is used to evaluate the classification effect of the classifier.

[0119] The ROC curve (receiver operating characteristic curve), also known as the receiver operating characteristic curve, is drawn by analyzing the confusion matrix under different threshold settings. The confusion matrix contains four key elements: true positives (TP), that is, the number of correctly identified positive examples; false positives (FP), that is, the number of negative examples incorrectly labeled as positive examples; false negatives (FN), that is, the number of positive examples incorrectly labeled as negative examples; and true negatives (TN), that is, the number of correctly identified negative examples.

[0120] The binary classification model will produce different false positive rate (FPR) and true positive rate (TPR) values ​​by adjusting the threshold. FPR is calculated as the ratio of false positive examples to all actual negative examples, while TPR is calculated as the ratio of true positive examples to all actual positive examples. The FPR and TPR values ​​corresponding to each threshold are plotted in the ROC space, and the resulting curve is the ROC curve of the model, where the horizontal axis represents FPR and the vertical axis represents TPR. In this way, the ROC curve depicts the performance changes of the model under various threshold settings.

[0121] (1) False Positive Rate (FPR): The probability that a positive example is not a true positive example, that is, the probability that a true negative example is judged as a positive example.

[0122]

[0123] (2) True Positive Rate (TPR): The correct discrimination rate in positive samples, that is, the probability that a true positive sample is judged as a positive sample (also known as the positive sample recall rate).

[0124]

[0125] Given a binary classification model and its threshold, a (X=FPR, Y=TPR) coordinate point can be calculated from the (positive / negative) true value and predicted value of all samples.

[0126] From the definition, we can know that AUC can be obtained by summing the areas of each part under the ROC curve. Assuming that the ROC curve is composed of coordinates {(x1,y1),(x2,y2),...,(x m ,y m )} are connected in sequence to form (x1=1,x m =1), then the AUC can be estimated as:

[0127]

[0128] Using AUC as an evaluation metric can give consistent evaluations under various thresholds, thus avoiding the shortcomings of traditional evaluation metrics such as accuracy and recall that are limited by threshold settings. In practice, we often encounter situations where the ratio of positive and negative samples is seriously unbalanced. AUC can be used to comprehensively evaluate the performance of the model when processing unbalanced data by calculating the values ​​under different thresholds. Therefore, AUC has become an important metric for evaluating the performance of knowledge tracking models.

[0129] 3) Experimental results and analysis

[0130] (1) Experiment 1: A comparative experiment was conducted by randomly selecting two datasets, one of which was used for pre-training and the other with 5,000 interactions for fine-tuning. Compared with training with only a small dataset, using a pre-trained model can significantly improve the prediction performance. The Transformer architecture was used for pre-training on the Ednet data and fine-tuned on a subset of the Algebra06 data to achieve the best performance, with an AUC improvement of 3.83%.

[0131] (2) Experiment 2: Three datasets, ASSIST09, Algebra06, and EdNet, were selected for experiments, two of which were used for pre-training, and 5000 interactions randomly selected from the other dataset were used for fine-tuning. The pre-trained knowledge tracking model outperformed all other models on small-scale datasets. In particular, as shown in Table 1, Table 1 shows the AUC results. After pre-training the Transformer model on the EdNet and ASSIST09 datasets and fine-tuning on 5000 interactions of the Algebra06 dataset, the AUC is 5.07% higher than the baseline model. Through experiments on other models with 5000 Algebra06 interactions, the results in Table 2 further verify that pre-training has a better effect on small datasets.

[0132] Table 1

[0133]

[0134] Table 2

[0135]

[0136] (3) Experiment 3: The BERT model was further pre-trained on the public ASSISTments, Algebra, and EdNet datasets, and 5,000 interactions in the Static2011 and ASSIST09 datasets were selected for fine-tuning to test the model performance. The model pre-trained on all datasets significantly outperformed the model without pre-training, with the AUC improved by 3.05% on the ASSIST09 dataset and 3.32% on the Static2011 dataset.

[0137] (4) Experiment 4: Based on the conclusion of Experiment 2, this experiment randomly selects two of the ASSIST09, Algebra06, and EdNet datasets for pre-training, and then fine-tunes on the third complete dataset to verify the effect of the pre-training method on the complete dataset and compare it with the basic knowledge tracking model. The experimental results are detailed in Table 3.

[0138] Table 3

[0139]

[0140] The knowledge tracking model based on the pre-trained Transformer architecture achieved the best performance on the Algebra06 and ASSIST09 datasets. Compared with the knowledge tracking model with a single BERT architecture and a single Transformer architecture, the performance after integrating the pre-trained model is better.

[0141] (5) Experiment 5: The model is trained on different datasets of the same smart education system. One ASSISTments dataset is selected as pre-training data, and 5,000 interactions from the other two datasets are used for fine-tuning. In addition, additional experiments on the same dataset are conducted, randomly selecting a subset of 5,000 interactions for fine-tuning, and the rest for pre-training. The results are shown in Tables 4 and 5. The results show that the model performance is not significantly improved when different interactions in the same smart education system are used as pre-training data and fine-tuning data respectively.

[0142] Table 4

[0143]

[0144] Table 5

[0145]

[0146]

[0147] (6) Experiment 6: This experiment aims to study the impact of dataset size on the performance of Transformer and BERT models during fine-tuning. First, the BERT model is pre-trained on the ASSIST09 dataset and then fine-tuned on the EdNet dataset with interaction sequences of different sizes. Similarly, the Transformer model is pre-trained on the EdNet dataset, and the ASSIST09 dataset with 282,072 interactions is selected for subsequent fine-tuning. The results show that the number of interactions used for fine-tuning has an impact on the results, and this impact is more significant when about 1 / 3 of the data in the EdNet and ASSIST09 datasets are selected.

[0148] (7) Experiment 7: We further explored the performance of pre-training techniques on extremely small datasets based on the ideas of Experiment 6. In particular, considering that the BERT model randomly masks 15% of responses during training, each interaction sequence must maintain a certain minimum length to avoid the masking ratio being insufficient to cover at least one complete interaction, which may lead to unfair comparisons in model performance evaluation. Therefore, we chose to use the Transformer framework for this experiment.

[0149] In this experimental setting, we first pre-trained on the EdNet dataset and then fine-tuned on the ASSIST09 dataset. The experimental results (Table 6) show that the pre-trained knowledge tracking model can maintain excellent performance even on the ASSIST09 dataset with only 100 interactions. More notably, compared with the model trained using only a small-scale dataset, pre-training on the Algebra05 dataset and then fine-tuning on 50 interactions of the ASSIST09 dataset can improve the AUC by 5.15%, providing an effective solution to the current challenge of "limited data".

[0150] Table 6

[0151]

[0152]

[0153] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A prediction method based on PMKT knowledge tracking model, characterized in that: include: Constructing a knowledge tracking model, wherein the knowledge tracking pre-trained model is an initial knowledge tracking model based on a pre-trained and fine-tuned architecture, wherein the knowledge tracking model includes an interactive mapping layer, a model processing layer, and an output layer connected in sequence; The student's interaction sequence is obtained, and the answer question sequence is identified and predicted through the knowledge tracking model to generate the correctness result of the answer question information, wherein the interaction sequence includes the question label, timestamp, knowledge point label, and whether the student's answer is correct or not.

2. The method according to claim 1, characterized in that The construction process of the knowledge tracking model includes: An initial knowledge tracking model is constructed, online education data and a small sample data set are obtained, the knowledge tracking model is pre-trained through online education, and the pre-trained model is fine-tuned to predict the student knowledge state corresponding to the small sample data, that is, the correctness of the answer information, so as to solve the cold start problem in knowledge tracking; wherein the online education data set includes question data and corresponding answer data, wherein the online education data set and the small sample data set belong to data sets of different online education systems, and the scale of the small sample data set is less than 1 / 1000 of the online education data set.

3. The method according to claim 1, characterized in that The fine-tuning step includes: Inheriting the weight parameters of the pre-trained model; A learning rate is set, and parameters of the pre-trained model are fine-tuned according to the learning rate; during the parameter fine-tuning process, some layers of the pre-trained model are frozen, and parameters of the frozen model are fine-tuned.

4. The method according to claim 1, characterized in that: During the parameter fine-tuning process, the freezing is no longer performed, and the parameters of the pre-trained model are directly fine-tuned to improve the fine-tuning accuracy.

5. The method according to claim 1, characterized in that: The knowledge tracking model is constructed based on an encoder+decoder architecture, an encoder architecture, or a decoder architecture.

6. The method according to claim 5, characterized in that Knowledge tracking model based on encoder + decoder architecture: In the encoder, the encoder inputs the student's interaction sequence through the interaction mapping layer to generate a high-dimensional static interaction representation, and the static interaction representation and the interaction time are used to generate a first representation sequence through the masked attention layer, the feedforward network layer and the normalization layer, and an embedded question sequence is obtained; In the decoder, the first representation sequence and the embedded question sequence from the encoder are used as inputs of the decoder's cross attention layer, and after being processed by the cross attention layer, they are processed by the feedforward network layer and the normalization layer to generate the decoder's hidden representation; The decoder’s hidden representation passes through a linear layer to generate a sequence of predicted correctness values ​​for answering the question, which is compared with the observed target correctness values ​​to calculate the loss value.

7. The method according to claim 5, characterized in that Knowledge tracking model based on encoder architecture: It includes the input layer, dropout layer, multi-head attention layer, feedforward network layer and output layer connected in sequence; In the input layer, for each student's interaction sequence, bidirectional context information is used to predict the answer of the interaction sequence, and different sequence embeddings are used in the training and testing stages; The test set is masked at the end position, and the masked positions of the training set and the test are added before the masking. During the training process, the loss of the pre-trained model is tracked only through the knowledge prediction of the masked positions in the training set and the test. Based on the interaction embedding under this masking strategy, the position information is added to the interaction sequence. The dropout layer is used to filter the answer information and generate a static interaction representation. The multi-head attention layer aggregates the contextual information of the filtered interaction sequence data. The output layer recognizes the aggregated information and generates the corresponding correctness result of the answer information.

8. The method according to claim 5, characterized in that Knowledge tracking model based on decoder architecture: It includes the input layer, multi-head attention layer, feedforward network layer and output layer connected in sequence; The input sequence of the input layer includes the student's answer records. Each answer record includes the question label, timestamp, knowledge point label, and whether the student's answer is correct or not. The embedding vector is generated by inputting the interaction sequence into the input layer. The embedding vector passes through the multi-head attention layer and the feedforward network layer in turn, and outputs the predicted value through the output layer.

Citation Information

Cited By

  • Transform-based student side information fusion knowledge tracking method

    CN119809889A