Answer answer correctness prediction method based on NLKT knowledge tracking model

Through the knowledge tracking model based on natural language understanding, combined with the BERT model and the custom difficulty coefficient algorithm, the problem of insufficient prediction accuracy of answer correctness in the traditional model is solved, and more accurate student answer prediction and personalized learning path design are achieved.

CN118626650AActive Publication Date: 2024-09-10LANZHOU UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410835237.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-10
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

The traditional knowledge tracking model has insufficient accuracy in predicting the correctness of student answers, mainly because it ignores the rich information in the exercise text.

Method used

A knowledge tracking model based on natural language understanding is used, combined with the pre-trained BERT model, a custom difficulty coefficient algorithm and a composite deep learning structure, including an exercise text understanding module, an exercise difficulty coefficient processing module and a deep knowledge tracking module, processed through sliding window technology Long text, extract deep semantic features, and dynamically adjust difficulty assessment.

Benefits of technology

It improves the accuracy of prediction of answer correctness, can more accurately capture the deep semantic information in the text and students' learning behavior, and provides personalized learning path design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626650A
    Figure CN118626650A
Patent Text Reader

Abstract

The invention discloses an answer correctness prediction method based on an NLKT knowledge tracking model. The method comprises the steps of obtaining exercise text data and knowledge component features; a knowledge tracking model based on natural language understanding is constructed, the knowledge tracking model based on natural language understanding comprises an exercise text understanding module, an exercise difficulty coefficient processing module and a deep knowledge tracking module, and the exercise text understanding module is constructed based on a pre-trained BERT model; inputting the exercise text data into a knowledge tracking model based on natural language understanding, carrying out feature extraction on the exercise text data through an exercise text understanding module to obtain a comprehensive text vector, and calculating and generating a question comprehensive difficulty coefficient based on knowledge component features through an exercise difficulty coefficient processing model; and generating a comprehensive feature vector according to the comprehensive text vector and the question comprehensive difficulty coefficient, and performing deep knowledge tracking processing on the comprehensive feature vector through a deep knowledge tracking module to obtain a final predicted answer correctness result.
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 method for predicting the correctness of answering questions based on an NLKT 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. Through platforms such as Intelligent Tutoring Systems (ITS) and Massive Open Online Courses (MOOCs), the Internet and digital technology have broken through the time and space limitations of traditional education, providing students with flexible and diverse learning methods and rich learning resources. 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. Researching 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] Traditional knowledge tracking models are mainly based on structured interaction data between students and exercises, using one-hot encoding of exercises and knowledge concepts as features, but often ignore the rich information contained in the exercise text, resulting in insufficient accuracy in predicting the correctness of students' answers. Summary of the invention

[0005] In order to solve the above technical problems, the present invention proposes a method for predicting the correctness of answers based on the NLKT knowledge tracking model to solve the problems existing in the above-mentioned prior art.

[0006] To achieve the above object, the present invention provides a method for predicting the correctness of an answer based on the NLKT knowledge tracking model, comprising:

[0007] Obtain exercise text data and knowledge component characteristics;

[0008] Constructing a knowledge tracking model based on natural language understanding, wherein the knowledge tracking model based on natural language understanding includes an exercise text understanding module, an exercise difficulty coefficient processing module, and a deep knowledge tracking module, wherein the exercise text understanding module is constructed based on a pre-trained BERT model;

[0009] The exercise text data is input into the knowledge tracking model based on natural language understanding, and the exercise text data is subjected to feature extraction through the exercise text understanding module to obtain a comprehensive text vector, and the comprehensive difficulty coefficient of the question is calculated based on the knowledge component features through the exercise difficulty coefficient processing model, and a comprehensive feature vector is generated according to the comprehensive text vector and the comprehensive difficulty coefficient of the question, and the comprehensive feature vector is subjected to deep knowledge tracking processing through the deep knowledge tracking module to obtain the final predicted answer correctness result.

[0010] Optionally, the process of extracting features from exercise text data includes:

[0011] Preprocess and segment the text data of the exercises, where the text data of the exercises includes paragraph information, question information and option information.

[0012] The paragraph information and question information are divided into a paragraph sequence and a question sequence respectively, and the paragraph sequence is divided by a sliding window to generate a plurality of window segments, wherein the window segments include a fixed number of tokens and the window segments have overlapping parts;

[0013] For different window fragments, the window fragments, question sequences and option information are spliced ​​to obtain a plurality of input sequences;

[0014] Process several input sequences through the BERT model to obtain several output vectors;

[0015] The output vectors are weighted and calculated according to the assigned weights through the attention mechanism to generate a comprehensive text vector.

[0016] Optionally, the process of generating the comprehensive difficulty coefficient of the question includes:

[0017] The comprehensive difficulty coefficient of the problem Diff final (q,u) is generated based on the basic difficulty score and the weighted difficulty score of multiple knowledge components:

[0018] Diff final (q,u)=Diff base (q)+Diff KC×(1+∑ KC Adjust(KC,u)

[0019] Among them, Diff base (q) is the basic difficulty score, Diff KC is a weighted score for the difficulty of multiple knowledge components. KC represents the corresponding knowledge component features. Adjust user (KC,u) represents the performance adjustment term,

[0020] The basic difficulty score is obtained according to the correctness of the question;

[0021] The multi-knowledge component difficulty weighted score is obtained by weighting and summing different knowledge component features, wherein the knowledge component features include the literal understanding feature KC literal , reasoning understanding feature KC inferential and critical understanding characteristics KC critial ,

[0022] Diff KC =w literal ·KC literal +w inferential ·KC inferential +w critial ·KC critial

[0023] where w literal , w inferential , w critial They are the weights of literal comprehension features, inferential comprehension features, and critical comprehension features.

[0024] The performance adjustment is calculated as follows:

[0025]

[0026] Among them, KC i_sucess (u) and KC i_failure (u) represent the number of successes and failures of students on the questions involving a specific KC, respectively, and ε is a constant for the denominator to be non-zero.

[0027] Optionally, the weights of the literal comprehension feature, the inference comprehension feature and the critical comprehension feature are obtained by a linear regression analysis method.

[0028] Optionally, the process of generating the comprehensive feature vector includes:

[0029] Obtaining a user identifier and an exercise identifier, converting the user identifier and the exercise identifier into a numerical index through an embedding layer, and mapping the numerical index into an identifier feature vector;

[0030] The comprehensive difficulty coefficient of the problem is normalized through the fully connected layer to generate a high-dimensional difficulty vector.

[0031] The comprehensive text vector, the identification feature vector and the high-dimensional difficulty vector are concatenated to generate an input sequence, and the input sequence is concatenated to generate a comprehensive feature vector.

[0032] Optionally, the deep knowledge tracking model includes a CNN layer, a multi-head attention layer, a Bi-GRU layer and a fully connected layer connected in sequence.

[0033] The CNN layer is used to extract features from the comprehensive feature vector to generate a fused feature vector. The multi-head attention layer performs self-attention calculation and linear transformation on the fused feature vector to obtain the attention output feature. The Bi-GRU layer processes the attention output features at different time steps, and the fully connected layer converts the output of the Bi-GRU layer into the final predicted probability of correctly answering the question.

[0034] Optionally, in the CNN layer, convolution processing is performed on the comprehensive feature vector, and the dimension of the comprehensive feature vector after the convolution processing is reduced through a maximum pooling operation, and the comprehensive feature vector after the dimension reduction is fused and spliced ​​to generate a fused vector.

[0035] Optionally, the natural language understanding-based knowledge tracking model is optimized by a binary cross entropy loss function:

[0036] The binary cross entropy loss function is:

[0037]

[0038] Where N is the number of training samples, is the actual answer of the i-th student at time step t+1 (1 for correct, 0 for wrong), is the probability of the correct answer predicted by the model.

[0039] Compared with the prior art, the present invention has the following advantages and technical effects:

[0040] Integrated application of advanced text embedding technology: For the first time, the pre-trained BERT model is deeply integrated into the deep knowledge tracking model to process the passage text, question text, and choice text of reading comprehension questions and convert them into a text embedding matrix. This integrated application not only improves the expressive power of text features, but also more accurately captures the deep semantic information in the text, providing strong support for understanding complex reading comprehension tasks.

[0041] Customized dynamic difficulty coefficient algorithm: It not only takes into account the inherent properties of the questions, such as the features related to knowledge components (KCs), including text comprehension (kc_literal), reasoning (kc_inferential), and critical thinking (kc_critical), but also dynamically adapts to different types of reading comprehension questions and determines the specific contribution of each knowledge component to the difficulty in a data-driven way. The advantage of this method is that it is based on actual student performance and dynamically adjusts the difficulty assessment according to the student answer data, so it can more accurately reflect the actual difficulty level of the question, and is more accurate and personalized.

[0042] Bidirectional GRU deep knowledge tracking model combined with multi-head attention mechanism: By integrating convolutional neural network (CNN), multi-head attention mechanism (Multi-head Attention) and bidirectional gated recurrent unit (Bi-GRU), it effectively captures the local and global features and temporal dependencies of the data, especially providing effective strategies for processing the complex features and dependencies of student answer data. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] 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:

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

[0045] Figure 2 This is a flowchart of the pre-trained BERT exercise text processing according to an embodiment of the present invention;

[0046] Figure 3 This is a diagram of the architecture of a multi-dimensional dynamic exercise difficulty algorithm according to an embodiment of the present invention;

[0047] Figure 4 This is a GRU-CKT module architecture diagram of an embodiment of the present invention;

[0048] Figure 5 A schematic diagram of a bidirectional GRU gated recurrent unit according to an embodiment of the present invention;

[0049] Figure 6 This is a diagram of the internal architecture of a GRU gated recurrent unit according to an embodiment of the present invention;

[0050] Figure 7 This is a clustering capability comparison result diagram of an embodiment of the present invention;

[0051] Figure 8 4 is a comparison chart of the context information capture capabilities of the embedded vectors of the embodiments of the present invention. DETAILED DESCRIPTION

[0052] 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.

[0053] 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.

[0054] The present invention proposes a Natural Language Understanding-based Knowledge Tracing Model (NLKT) to evaluate the accuracy of students' answers. This method aims to use advanced natural language understanding (NLU) technology to capture different semantic relationships in the context of exercises from the perspective of the content of the exercise text, and improve the performance of knowledge tracing. Taking the reading comprehension task as an example, the accuracy of predicting the correctness of students' answers is improved by in-depth analysis of students' reading comprehension interaction data. The NLKT model combines a pre-trained BERT model, a custom difficulty coefficient algorithm, and a composite deep learning structure (including CNN, multi-head attention mechanism, and Bi-GRU) to improve the accuracy of predicting the correctness of answers and support the design of personalized learning paths.

[0055] Model Architecture

[0056] In order to understand and predict students' performance in tasks that are highly dependent on exercise texts, such as reading comprehension, the present invention proposes a knowledge tracking model (NLKT) based on natural language understanding, which integrates pre-trained BERT models, convolutional neural networks (CNN), gated recurrent units (GRU), multi-head attention mechanisms (Multi-headAttention) and other deep learning technologies. The NLKT model is mainly composed of three parts: an exercise text understanding module (Sem-TextEG module), an exercise difficulty coefficient processing module, i.e., an exercise difficulty coefficient algorithm and processing module (Multi-DDiff module), and a deep knowledge tracking module (GRU-CKT module) of a bidirectional GRU using a multi-head attention mechanism. The goal of the model is to predict the correctness of students' answers based on the exercise text materials, questions, options and question difficulty in the interactive sequence. The model architecture is as follows: Figure 1 As shown:

[0057] Exercise text comprehension module

[0058] Using natural language understanding technology to deeply explore the rich semantics of exercise content is the key to understanding and analyzing students' learning behavior. The exercise text understanding module (Sem-TextEG) in the NLKT model uses a pre-trained BERT model combined with sliding window technology to effectively process long exercise texts, ensuring the integrity of the text and the coherence of the context. This method solves the problem of sequence length limitations encountered when processing long texts and ensures a comprehensive understanding of the deep meaning of the exercise text.

[0059] Specifically, the goal of the exercise text understanding module is to generate deep semantic feature embeddings of the exercise text data, that is, comprehensive feature vectors of the text data, such as Figure 2 As shown in the figure. This module uses the pre-trained BERT model to vectorize the text. When faced with long paragraphs of text such as reading comprehension, a sliding window method is adopted to overcome the maximum length limit of the BERT model when processing long sequences, while maintaining the contextual information of the text. By dividing the long text into several overlapping small window segments and processing each segment independently, the vector representation of each segment can be effectively aggregated without sacrificing the semantic integrity of the text, thereby achieving in-depth understanding and analysis of the entire text.

[0060] First, the module preprocesses and performs word segmentation operations on the exercise text data. The exercise text data includes paragraph information, question information, and option information. The paragraph information and question information are divided into paragraph sequence P and question sequence Q. Both paragraph sequence and question sequence are token sequences. Then the sliding window technology is used to segment the paragraph sequence P to generate multiple overlapping window segments. Each window contains a fixed number of tokens, and a certain amount of overlapping parts are designed to maintain the coherence of the text.

[0061] Secondly, construct the input sequence. For each window segment of the paragraph sequence P, compare it with the question sequence Q and each option information C. i splicing to form multiple independent input sequences. i represents the i-th window segment of the paragraph P segmented by the sliding window, and the input sequence S i Is P i and the question sequence Q and the option sequence C j The concatenated sequence is represented as:

[0062] S i =[CLS]+P i +[SEP]+Q+[SEP]+C j #(1)

[0063] Next, the module processes each input sequence through the BERT model and obtains the text semantic feature vector representation corresponding to the [CLS] tag in each input sequence as the output vector corresponding to the input sequence. i , the output vector obtained by BERT processing is represented as V i :

[0064] V i =BERT(S i )[CLS]#(2)

[0065] In order to synthesize the information of the entire exercise text data, this module aggregates the output vector representations of all window fragments. By using the attention mechanism to dynamically i Assign weight w i,h , i and j represent different window fragment numbers, N represents the total number of corresponding window fragments, where score(V i ) is used to measure the relative importance of each window segment. After calculating the weighted average, the comprehensive text vector V is obtained text :

[0066]

[0067] It not only effectively retains the contextual information of the text, but also avoids the information loss caused by the text length limit. By aggregating the vector representations of each window, it can fully understand the entire text content, providing an effective text vectorization strategy for improving the knowledge tracking performance in reading comprehension tasks.

[0068] Exercise difficulty coefficient processing module

[0069] In intelligent education systems, accurate assessment of exercise difficulty is crucial to achieving personalized learning paths and improving learning outcomes. To meet this demand, the NLKT model introduces an exercise difficulty coefficient processing module, the Multidimensional Dynamic Difficulty Algorithm (Multi-Ddiff), which provides an innovative solution for knowledge tracking and difficulty adjustment in complex tasks such as reading comprehension.

[0070] The Multi-Ddiff algorithm integrates the knowledge structure of the exercises, such as the features of knowledge components (KCs), including text comprehension features, reasoning comprehension features, and critical comprehension features. Among them, the above features are fields contained in the dataset itself. Indicates whether it is necessary to understand the literal meaning of the text of the question, through reasoning, and through critical understanding in order to answer a certain question correctly. In the dataset, if a question involves these three parts, these three fields are 1. If it does not involve a certain feature, the feature is empty. In addition, a dynamic adaptation mechanism is adopted. By analyzing the students' answer data, the contribution of each knowledge component feature to the difficulty of the exercise is dynamically adjusted in a data-driven manner, such as Figure 3 Its advantage is that it can more realistically and accurately map the difficulty level of the exercises, that is, the difficulty coefficient of the exercises, and support more precise and personalized learning path planning. The specific methods are as follows:

[0071] Comprehensive difficulty coefficient of the problem Diff final (q,u) is divided by the basic difficulty score Diff base (q) and multi-knowledge component difficulty weighted score Diff KC Joint decision:

[0072] Diff final (q,u)=Diff base (q)+Diff KC ×(1+Σ KC Adjust(KC,u))#(5)

[0073] Among them, Diff base (q) represents the basic difficulty score calculated based on the overall performance of all students on a specific question, estimated by the correct rate of the question, and the calculation formula is:

[0074]

[0075] Number of CorrectResponses for q represents the number of correct responses to the question, and TotalResponses for q represents the total number of responses to the question.

[0076] Multi-knowledge component difficulty weighted score Diff KC Considering the impact of different knowledge components (KCs) on the difficulty of the problem, a specific weight is defined for each knowledge component KC, and the calculation formula is:

[0077] Diff KC =w literal ·KC literal +w inferential ·KC inferential +wcritial ·KC critial #(7)

[0078] where w literal , w inferential , w critial They are the weights of literal comprehension features, inferential comprehension features, and critical comprehension features.

[0079] The performance adjustment Adjust(KC,u) takes into account the user's historical performance in terms of literal comprehension features, inference comprehension features, and critical comprehension features to dynamically adjust the difficulty of the question. If a user frequently makes mistakes in a certain knowledge component KC, the question is considered to be more difficult for the user. The calculation of this adjustment is:

[0080]

[0081] Among them, KC i_sucess (u) and KC i_failure (u) represents the number of successes and failures of students on questions involving a specific knowledge component KC, and ε is a small constant (e.g. 10 -6 ) to ensure that the denominator is not zero.

[0082] In this process, the weight w literal , w inferential , w critial By using the linear regression analysis algorithm,

[0083] In the linear regression analysis algorithm:

[0084] 1: Input: Dataset D = {(Qi, KCsi, Difficulty;)}, where i = 1, ..., n, Q = {Q1, Q2, ..., Q} is the problem set, KCs; = (kc_literal;, kc_inferential;, kc_critical;) is a binary vector indicating the existence of the knowledge component of problem Qi, and Difficultyi∈R is the difficulty level of problem Qi.

[0085] 2: Output: vector W∈Rm, where m is the number of knowledge components, representing the weight of each knowledge component.

[0086] 3: Initialize the linear regression model M.

[0087] 4: Construct the feature matrix X∈{0, 1}n×m and the target vector y∈Rn.

[0088] 5: fori=1 to ndo

[0089] 6: X[i]←KCsi

[0090] 7: y[i]←Difficultyi

[0091] 8: end for

[0092] 9: Train model M on dataset (X, y).

[0093] 10: M←fit(X,y), minimize ||XW-y||2.

[0094] 11: Extract the weight vector W from the model M.

[0095] 12: W←Coefficient (M)

[0096] 13: Return the weight vector W

[0097] Linear regression is a predictive analysis method that finds the relationship between one or more independent variables and a dependent variable. Its basic form can be expressed as:

[0098] y=β0+β1X1+β2X2+…+β n X n +∈#(9)

[0099] Among them, y is the dependent variable, X1, X2, …, X n is the independent variable, β0 is the intercept term, β1, β2…β n is the coefficient (weight) of the independent variable, representing the influence of each independent variable on the dependent variable, and ∈ is the error term.

[0100] In the multi-dimensional dynamic problem difficulty algorithm Multi-Ddiff, the dependent variable is the difficulty of the problem, and the independent variable is the presence or absence of the three knowledge components. This analysis can reveal the actual contribution of each knowledge component to the problem difficulty, so that the problem difficulty score not only reflects the overall performance of the student, but also can be personalized to adapt to the specific situation of each student.

[0101] Input Modeling

[0102] The input modeling process is to fuse the exercise text data, user information, and question difficulty scores into a comprehensive feature vector that can be effectively used in the model. Specifically, the model encodes and fuses the input data through the following steps:

[0103] (1) Text embedding. In the exercise text understanding module, the BERT model is used to process the exercise text data. The chapter paragraph information, question information, and option information are converted into a vector with 768 feature dimensions. The text data is divided into multiple paragraphs, and each paragraph information is vectorized separately. The sliding window strategy is used to process the segmented paragraph sequence, which is then spliced ​​and weighted to form a comprehensive text vector.

[0104] (2) User ID and question ID embedding: The user ID and question ID are converted into numerical indexes through the embedding layer, and the numerical indexes are mapped into dense identification feature vectors, including the user ID embedding vector and the question ID embedding vector.

[0105] (3) Embedding the comprehensive difficulty coefficient of the problem. In order to make the comprehensive difficulty coefficient of the problem compatible with other feature vectors and facilitate subsequent feature fusion, the comprehensive difficulty coefficient of the problem obtained by the multi-dimensional dynamic difficulty algorithm module is normalized through a fully connected layer and mapped to a higher-dimensional space to generate a high-dimensional difficulty vector difficulty. It can be expressed as:

[0106] difficulty=σ(d)#(10)

[0107] Among them, σ(d) represents the operation of normalizing the comprehensive difficulty coefficient d of the problem and mapping it to the high-dimensional space.

[0108] (4) Model input concatenation. Before inputting the above-mentioned comprehensive text vector, identification feature vector, and high-dimensional difficulty vector into the neural network, the present invention concatenates the above-mentioned feature vectors into a unified feature vector. This process ensures that the dimensions of all features are correctly aligned to form a comprehensive feature vector expression. Sample comprehensive feature vector V combined Expressed as:

[0109] V combined =[X text ; E user ; E question ;D embed ]#(11)

[0110] The symbol ";" represents the concatenation operation of vectors, so that The dimension extracted by the BERT model is d text =768 text feature vector, The dimension is d embed = 32 user ID embedding vector, The dimension is d embed The question ID embedding vector, is a scalar value of the difficulty of the problem, It is the representation of the high-dimensional difficulty vector after the problem difficulty is transformed through a fully connected layer.

[0111] For the entire comprehensive feature sequence {S1,S2,…,S T} Each S tRepresents the sample at time step t. The above concatenation process is performed on each sample to obtain the comprehensive feature vector s:

[0112]

[0113] in, It represents the comprehensive feature vector of samples at time step T, and the superscript T represents the time step number.

[0114] Deep Knowledge Tracking Module

[0115] The deep knowledge tracking module, namely the GRU-CKT module, is the main network architecture of the NLKT model. It is designed to process and analyze input data through a series of neural network layers to predict students' answers in reading comprehension tasks.

[0116] The GRU-CKT module uses a convolutional neural network (CNN) to extract local features, a multi-head attention mechanism to capture dependencies from different angles, and a bidirectional gated recurrent unit (Bi-GRU) to understand the context of sequence data. The NLKT model aims to predict the future results of students' answers based on their historical answers. The model uses this composite architecture (such as Figure 4 The comprehensive feature vector at each time step is sequentially input into the CNN-multi-head attention mechanism-Bi-GRU structure corresponding to different time steps) to improve the prediction performance of the model.

[0117] (1) CNN layer

[0118] In the convolution layer, multiple filters (convolution kernels) are applied to each comprehensive feature vector V in the sample. combined Perform convolution operations to extract rich local features C k The operation of each filter k can be expressed as:

[0119] C k =ReLU(W K *V combined +b k )#(13)

[0120] Among them, W K is the weight of filter k, b k is the bias term, * represents the convolution operation. It enables each filter to slide across the entire fusion vector and capture specific local patterns, and ReLU represents the activation function.

[0121] In the pooling layer, a maximum pooling operation is applied to each local feature to extract the most significant features and reduce the feature dimension:

[0122] P k =MaxPool(C k )#(14)

[0123] The pooled feature P k Fusion and processing are performed to form a long convolution feature vector F dense :

[0124] F concat =[P1; P2; ...; P N ]#(15)

[0125] F dense =ReLU(W dense *F concat +b dense )#(16)

[0126] Among them, W dense and b dense are the weights and biases of the fully connected layer respectively.

[0127] (2)Multi-HeadAttention layer

[0128] In the Multi-Head Attention layer, the convolution feature vector F dense It is divided into multiple attention heads, and each attention head is linearly transformed with independent query vector (Q), key vector (K), and value vector (V). Then, each attention head is self-attention calculated to obtain the output of the attention head. Finally, the outputs of all attention heads are concatenated together and the output is linearly transformed.

[0129] For each attention head h, first transform F dense Transformed into three different representations of query vector Q, key vector K, and value vector V, the subscript h represents the corresponding attention head:

[0130]

[0131] Among them, Q h , K h ,V h represents the query vector, key vector, and value vector corresponding to the attention head h. The parameter matrices representing the query vector, key vector, and value vector respectively, Represents the trainable parameter matrices of query vector, key vector, and value vector, head i Represents the i-th head output.

[0132] For each head, we calculate the dot product attention between the query and the key, and then apply softmax to get the attention weights. h :

[0133]

[0134] Among them, d k is the dimension of the key vector, this scaling factor helps training stability.

[0135] Concatenate the outputs of all heads and perform a linear transformation to get the attention layer output V attention :

[0136] V attention =MultiHead(Q,K,V)=Concat(head1,…head h )W o #(20)

[0137] Wherein, W represents the linear transformation coefficient.

[0138] (3)Bi-GRU layer

[0139] Through the bidirectional GRU (Bi-GRU), the model can consider both past and future information at the same time and understand the data sequence more comprehensively. The hidden state of each time step is updated by the current input and the previous state. Bi-GRU does not change the internal structure of GRU, but uses two GRUs in opposite directions. The two sets of GRU results are combined as the final output, such as Figure 5 This processing method effectively enhances the model's ability to capture and process sequence data, and is suitable for processing time series problems in educational data analysis. By combining forward and backward information flows, Bi-GRU can more comprehensively capture the temporal dependencies in the learning sequence, thereby improving the accuracy of knowledge tracking.

[0140] The GRU gated recurrent unit uses update gates and reset gates to store and filter information. Since the model does not fade the new input every time, it retains the relevant information and passes it to the next time step of the network, eliminating the gradient disappearance problem. Its unit architecture is as follows Figure 6 shown.

[0141] The GRU unit is based on the input V obtained in the previous step attention and the hidden state H at the previous time step t-1 , at each time step t, update its hidden state H at time step t t :

[0142] H t =GRU(V attention ,H t-1 )#(twenty one)

[0143] The role of the update gate in the model is to determine how much previous information should be passed to the future state, and how much information must be retained between the previous time step and the current time step. t The expression is:

[0144] z t =σ(W z ·[h t-1 ,V attention ]+b z )#(twenty two)

[0145] Among them, W z is the weight matrix, σ represents the sigmoid function, b z Indicates bias.

[0146] The reset gate determines how much past information needs to be forgotten. Calculate the reset gate r t The expression is:

[0147] r t =σ(W r ·[h t-1 ,V attention +b r )#(twenty three)

[0148] Among them, W r is the weight matrix, σ represents the sigmoid function, b r Indicates bias.

[0149] The update gate and reset gate will affect the final output.

[0150] First is the current hidden state, which introduces new memory content and uses a reset gate to store relevant information from the past:

[0151]

[0152] The final hidden state is calculated by the update gate, which determines the information collected from the current hidden state and the previous step:

[0153]

[0154] (4) Output prediction layer

[0155] Finally, the model transforms the output of the Bi-GRU layer into the final prediction output through a fully connected layer, which is the probability that the student correctly answers the question at a specific time step:

[0156] y t =σ(W0·h t +b0)#(26)

[0157] Among them, y t is the probability that the model predicts that the student will answer the next question correctly at time step t, W0 and b0 are the weight and bias of the output layer, and σ is the sigmoid activation function, which ensures that the output value is between 0 and 1.

[0158] Model optimization goal

[0159] The choice of optimization target directly affects the effectiveness of model training. In order to ensure that the proposed knowledge tracking model based on natural language understanding (NLKT) can accurately predict the performance of students in answering questions in the future, the optimization target of the model is defined as minimizing the binary cross-entropy loss, so that the model finely adjusts its weights to improve the prediction results. The specific loss function is defined as follows:

[0160]

[0161] Where N is the number of training samples, is the actual answer of the i-th student at time step t+1 (1 for correct, 0 for wrong), is the probability of the correct answer predicted by the model. By minimizing this loss, the model's predicted value gradually approaches the true label value, thereby improving the overall prediction performance.

[0162] Model optimization strategy

[0163] In order to optimize the above model, the AdamW optimizer is used. This optimizer improves the traditional Adam optimizer by introducing weight decay, which helps to improve the generalization ability of the model. The model sets the weight decay coefficient to 0.01. At the same time, in order to improve the stability and efficiency of training, the present invention introduces a learning rate warm-up

[87] and gradual decay

[88] Strategy. Specifically, the learning rate gradually increases to a maximum value at the beginning of training, and then gradually decreases as training progresses. This strategy helps the model converge quickly in the early stage and make detailed adjustments in the later stage of training to achieve better performance.

[0164] (1) AdamW optimizer

[0165] AdamW is an improvement on the Adam optimizer. It decouples weight decay from parameter updates, which helps improve the generalization ability of the model. For each parameter θ, the parameter update is as follows:

[0166]

[0167] in, and are the bias-corrected estimates corresponding to the first and second moments of the parameters, η t is the learning rate at time t, which can be dynamically adjusted through the learning rate scheduling strategy, λ is the weight decay coefficient, θ t Represents the updated parameters at time t.

[0168] (2) Preheating and gradual decay

[0169] Learning rate warm-up is the process of gradually increasing the learning rate at the beginning of training, while gradual decay is the process of reducing the learning rate after a certain period to help the model converge better. The strategy adopted by this model is linear warm-up followed by linear decay, and its learning rate η t The calculation at time step t is as follows:

[0170] Warm-up stage: In the warm-up stage (before T warmup step), the learning rate increases linearly from 0 to the preset maximum value η max :

[0171]

[0172] The warm-up phase helps stabilize the initial training process of the model and prevents the model from diverging due to excessively high learning rates at the beginning of training.

[0173] Attenuation phase: After the warm-up, the learning rate decreases from η max It starts to decay gradually until the end of training. A common decay method is linear decay until the learning rate drops to 0 at the end of training:

[0174]

[0175] Where T is the total number of training steps, η t Represents the learning rate at time t, t represents the time, T warmup Indicates the number of steps in the warm-up phase.

[0176] Experimental results and analysis

[0177] Dataset

[0178] This paper uses the AI ​​Comprehend Dataset, which involves 5,201 independent interactions of 72 students on 300 different questions. These data not only cover basic user and exercise information, but also include the detailed interaction process of students answering questions, providing a rich information foundation for in-depth research on students' learning patterns and knowledge mastery.

[0179] Experimental setup

[0180] In the specific experimental process of the present invention, the BERT-base-uncased pre-trained model is used to generate exercise text embedding, and a single-layer bidirectional GRU network is integrated on its basis, and its hidden state dimension is 128. In addition, the experiment also introduces a multi-head attention mechanism to improve the learning ability of the model and the accuracy of prediction. In order to further improve the performance of the model, the experiment integrates the exercise difficulty score into the model through a 256-dimensional fully connected layer.

[0181] The experiments were conducted in a high-performance computing environment equipped with NVIDIA CUDA. The AdamW optimizer was used for model training. The initial learning rate was set to 1e-6 and a weight decay of 0.01 was added. The learning rate followed a linear decrease strategy after a warm-up period, and the batch size was uniformly set to 32. After the input data was processed by the BERT tokenizer, the dimensions of input_ids, attention_mask, and token_type_ids were all [16,512]. The sequence output dimension obtained by the model after processing was [16,512,768], while the output dimensions of the GRU layer and the multi-head attention layer were [16,512,256] respectively. The difficulty score was obtained after passing through the fully connected layer to obtain the dimension of [16,1,256], and then combined with the output of the attention layer to obtain the final combined output dimension of [16,512,256]. Finally, the logits output by the model matched the dimension of the training label [16,1]. When evaluating the performance, AUC and accuracy (ACC) were mainly used as evaluation indicators.

[0182] Comparative Experiment and Analysis

[0183] In order to verify the advantages of the knowledge tracking model (NLKT) based on natural language understanding and test its accuracy in predicting students' reading comprehension performance, this paper designed a series of comparative experiments to compare and analyze NLKT with the currently popular knowledge tracking models. Through these experiments, the purpose is to deeply explore the innovations made by NLKT on the existing classic knowledge tracking models and their effects. The experiment selected four knowledge tracking models for comparison:

[0184] The groundbreaking feature of the DKT-LSTM model is that it is the first to apply deep learning to track students’ knowledge status and uses LSTM to reveal the dynamic evolution of knowledge points over time.

[0185] SAKT introduces a self-attention mechanism, which strengthens the model's focus on historical interactions. It learns through an independent encoder structure of skill points and can assign appropriate weights to previous answers when predicting.

[0186] EKT, the model combines the text information of the exercises, uses Word2Vec to encode the exercise words, and tracks the students' knowledge status through a variant of RNN - bidirectional LSTM, and proposes a dual strategy including Markov characteristics and attention mechanism.

[0187] PEBG, the model adopts a bipartite graph pre-training embedding method to learn low-dimensional embeddings of problems through side information, which covers multiple dimensions such as problem difficulty, problem-skill relationship, problem similarity, and skill similarity.

[0188] Table 1

[0189]

[0190] As shown in Table 1, Table 1 is a baseline comparison experiment of the NLKT model. The excellent performance of the NLKT model in a series of comparative experiments verifies its significant improvement over the existing knowledge tracking model. Compared with the highest performance in the baseline model, the ACC is improved by 1.5% and the AUC is improved by 1.73%. The NLKT model successfully improves the performance of predicting students' reading comprehension exercise performance through the embedding of high-level semantic features and fine-grained difficulty estimation.

[0191] Ablation experiments and analysis

[0192] In order to accurately evaluate the effectiveness of each feature vector in the NLKT model, this paper uses an ablation experiment method to explore the changes in model performance after removing certain key features. By comparing the original model with its variants, the contribution of the exercise text embedding feature and the question difficulty coefficient embedding feature is quantitatively evaluated. Table 2 shows the results of the ablation experiment of the embedding components.

[0193] Table 2

[0194]

[0195] The ablation results in Table 2 show that the removal of text embedding features and question difficulty information leads to a significant drop in model performance (NLKT_text&diff), indicating the important role of complex text semantic features, i.e., comprehensive text vectors, and question difficulty metadata, i.e., comprehensive question difficulty coefficients, in understanding the dynamics of exercise content and its interaction with students. The integration of these embedding components provides a mechanism that enables the model to establish a closer connection between question representation and student knowledge status. When the exercise text embedding feature (NLKT_text) is removed alone, the ACC and AUC decrease, but the decrease is smaller than that of the variant that completely removes both features. This indicates that the question difficulty coefficient embedding feature alone has a certain positive impact on the model. Removing only the question difficulty coefficient embedding feature (NLKT_diff) also leads to a drop in performance, but it is still higher than the variant that removes both features at the same time, indicating that the exercise text embedding feature is indispensable in capturing the complex interaction between students and exercises.

[0196] Table 3 Network layer ablation experiment results

[0197]

[0198]

[0199] The ablation results in Table 3 show that after removing the CNN layer (NLKT_CNN), the model can achieve high ACC and AUC by relying on GRU and multi-head attention mechanism, indicating that even without the local feature extraction of the CNN layer, the GRU joint attention mechanism is sufficient to capture the dynamic changes of the knowledge state. The variant with the multi-head attention layer removed (NLKT_MHA) shows the ability of CNN and GRU to maintain model performance without the assistance of the attention mechanism. However, compared with the full NLKT model, the performance of these two variants has declined, especially in the AUC indicator, indicating the complementary role of these layers in the model and their joint value in accurately tracking the student's knowledge state.

[0200] Text Embedding Comparison

[0201] This experimental section aims to evaluate and compare the performance of BERT, Word2Vec, GloVe, and QuesNet in constructing text embeddings for reading comprehension questions.

[0202] (1) Unsupervised clustering was performed using the embedding vectors of paragraphs, questions, and answer options to evaluate whether the model can naturally classify related texts based on the text content. The Silhouette Coefficient was used as the evaluation indicator.

[0203] The silhouette coefficient is a metric for evaluating the clustering effect, covering two key factors: cohesion and separation. The cohesion a(i) describes how close a data point is to other elements in its same category, while the separation b(i) measures the distance between this data point and the nearest group of elements in a different category. Through these two metrics, the silhouette coefficient S(i) provides a means to quantify the clustering quality:

[0204]

[0205] When a(i) < b(i), that is, the distance within the class is less than the distance between classes, the clustering result is more compact. The value of S will approach 1. The closer it is to 1, the more obvious the silhouette. On the contrary, when a(i) > b(i), the distance within the class is greater than the distance between classes, indicating that the clustering result is very loose. The value of S will approach -1, and the closer it is to -1, the worse the clustering effect.

[0206] Figure 7 The results shown above indicate that the above several text embedding techniques can all show the clustering potential of semantic information based on passage content, related questions, and answer options through unsupervised clustering. In this clustering task, QuesNet performs optimally, and the performance of BERT is better than that of the static embedding techniques GloVe and Word2Vec, effectively capturing the information of word co-occurrence.

[0207] (2) By comparing the similarity of the embedding vectors of the same vocabulary in different sentences to evaluate the ability of these techniques to retain intra-sentence and inter-sentence context information, with the cosine similarity as the evaluation criterion. Specifically, for a specific passage, two independent sentences are constructed by combining a question and two answer options (one correct answer and one randomly selected wrong answer). Each method generates the embedding vectors of these constructed sentences and calculates the cosine similarity between the embedding vectors.

[0208] Given two vectors A and B, their cosine similarity can be calculated by the following formula:

[0209]

[0210] where ||A|| and ||B|| represent the norms of A and B, and A i and B i represent the components of A and B at the i-th position respectively.

[0211] The experimental results are as Figure 8 shown. When comparing sentences with different answers, BERT can more effectively capture the context difference information and successfully generate embedding vectors reflecting these differences. This means that even if two sentences are superficially similar, if they contain the correct and wrong answers respectively, the similarity of the generated embedding vectors will be relatively low.

[0212] In the reading comprehension task, since the wrong answers are sometimes not explicitly mentioned in the passage and sometimes appear as distractors, the similarity calculated in this process is always greater than zero. However, overall, the NLKT method, which combines BERT and sliding window technology, performs better than other methods in generating exercise text embeddings.

[0213] (3) For a detailed comparison of the performance of BERT, Word2Vec, GloVe and QuesNet in predicting students’ knowledge status, see Table 4.

[0214] Table 4 shows the effectiveness results of the three embedding codes in the knowledge tracking model. The experimental results show that for the prediction of the interaction of the knowledge tracking reading comprehension task, the reading comprehension passage, question and choice in the data are fused and embedded as part of the knowledge tracking model input. Among the above text embedding generation methods, the BERT combined with sliding window strategy adopted by the present invention performs best.

[0215] Table 4

[0216]

[0217] The comparative experiment further verified the unique advantages of the Multi-DDiff algorithm. As shown in Table 5, which is a comparison of the average accuracy and the custom difficulty coefficient, compared with the traditional method of using only the average accuracy as the difficulty assessment, the Multi-DDiff algorithm uses a deeper level of data analysis, including students' past answering skills and the knowledge components of the exercises. This comprehensive difficulty assessment method shows higher accuracy in the knowledge tracking task and significantly improves the prediction effect of students' answering accuracy. Both ACC and AUC indicators show that the performance of the Multi-DDiff algorithm is better than the traditional method, which emphasizes the importance of finding a more refined balance between answering skills and exercise difficulty assessment.

[0218] The test-aware attention-based convolutional neural network framework TACNN is a method for predicting the absolute difficulty of English reading comprehension questions, focusing on modeling from the grammatical and semantic aspects of the questions, such as sentence structure, vocabulary grammar, etc. Although the TACNN method has its unique advantages in understanding sentence structure and vocabulary grammar, the Multi-DDiff algorithm evaluates the difficulty of questions dynamically and individually, taking into account the students' historical answer records, and more accurately reflects the students' actual perception of difficulty in each question, making it more accurate in predicting the students' knowledge status, so that it can better adapt to changes in students' abilities and adjustments in needs during the learning process.

[0219] Table 5

[0220]

[0221] This paper proposes a deep knowledge tracking model that combines natural language processing technology and deep learning methods. By integrating BERT to generate deep semantic feature embedding (Sem-TextEG) of exercise text data and multi-dimensional dynamic exercise difficulty algorithm (Multi-DDiff), the model can deeply understand the complex relationship between text data and student learning behavior. The design of the composite deep learning architecture further enhances the feature capture capability of the model, enabling it to accurately capture and understand the content of the questions, the students' answering patterns, and the dependencies between them. The experimental results verify the effectiveness of the model and the performance advantages after integrating each part.

[0222] 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. The answer correctness prediction method based on the NLKT knowledge tracking model is characterized by: include: Obtain exercise text data and knowledge component characteristics; Constructing a knowledge tracking model based on natural language understanding, wherein the knowledge tracking model based on natural language understanding includes an exercise text understanding module, an exercise difficulty coefficient processing module, and a deep knowledge tracking module, wherein the exercise text understanding module is constructed based on a pre-trained BERT model; The exercise text data is input into the knowledge tracking model based on natural language understanding, and the exercise text data is subjected to feature extraction through the exercise text understanding module to obtain a comprehensive text vector, and the comprehensive difficulty coefficient of the question is calculated based on the knowledge component features through the exercise difficulty coefficient processing model, and a comprehensive feature vector is generated according to the comprehensive text vector and the comprehensive difficulty coefficient of the question, and the comprehensive feature vector is subjected to deep knowledge tracking processing through the deep knowledge tracking module to obtain the final predicted answer correctness result.

2. The method according to claim 1, characterized in that The process of feature extraction for exercise text data includes: Preprocess and segment the text data of the exercises, where the text data of the exercises includes paragraph information, question information and option information. The paragraph information and question information are divided into a paragraph sequence and a question sequence respectively, and the paragraph sequence is divided by a sliding window to generate a plurality of window segments, wherein the window segments include a fixed number of tokens and the window segments have overlapping parts; For different window fragments, the window fragments, question sequences and option information are spliced ​​to obtain a plurality of input sequences; Process several input sequences through the BERT model to obtain several output vectors; The output vectors are weighted and calculated according to the assigned weights through the attention mechanism to generate a comprehensive text vector.

3. The method according to claim 1, characterized in that The process of generating the comprehensive difficulty coefficient of the problem includes: The comprehensive difficulty coefficient of the problem Diff final (q,u) is generated based on the basic difficulty score and the weighted difficulty score of multiple knowledge components: Diff final (q,u)=Diff base (q)+Diff KC ×(1+∑ KC AdjustKC,u Among them, Diff base (q) is the basic difficulty score, Diff KC is a weighted score for the difficulty of multiple knowledge components. KC represents the corresponding knowledge component features. Adjust user (KC,u) represents the performance adjustment term, The basic difficulty score is obtained according to the correctness of the question; The multi-knowledge component difficulty weighted score is obtained by weighting and summing different knowledge component features, wherein the knowledge component features include the literal understanding feature KC literal , reasoning understanding feature KC inferential and critical understanding characteristics KC critial , Diff KC =w literal ·KC literal +w inferential ·KC inferential +w critial ·KC critial where w literal , w inferential , w critial They are the weights of literal comprehension features, inferential comprehension features, and critical comprehension features. The performance adjustment is calculated as follows: Among them, KC i_sucess (u) and KC i_failure (u) represent the number of successes and failures of students on the questions involving a specific KC, respectively, and ε is a constant for the denominator to be non-zero.

4. The method according to claim 1, characterized in that: The weights of the literal comprehension feature, the inference comprehension feature and the critical comprehension feature are obtained through a linear regression analysis method.

5. The method according to claim 1, characterized in that The generation process of the comprehensive feature vector includes: Obtaining a user identifier and an exercise identifier, converting the user identifier and the exercise identifier into a numerical index through an embedding layer, and mapping the numerical index into an identifier feature vector; The comprehensive difficulty coefficient of the problem is normalized through the fully connected layer to generate a high-dimensional difficulty vector. The comprehensive text vector, the identification feature vector and the high-dimensional difficulty vector are concatenated to generate an input sequence, and the input sequence is concatenated to generate a comprehensive feature vector.

6. The method according to claim 1, characterized in that The deep knowledge tracking model includes a CNN layer, a multi-head attention layer, a Bi-GRU layer and a fully connected layer connected in sequence. The CNN layer is used to extract features from the comprehensive feature vector to generate a fused feature vector. The multi-head attention layer performs self-attention calculation and linear transformation on the fused feature vector to obtain the attention output feature. The Bi-GRU layer processes the attention output features at different time steps, and the fully connected layer converts the output of the Bi-GRU layer into the final predicted probability of correctly answering the question.

7. The method according to claim 1, characterized in that In the CNN layer, the comprehensive feature vector is convolved, and the dimension of the comprehensive feature vector after the convolution process is reduced through a maximum pooling operation, and the comprehensive feature vector after the dimension reduction is fused and concatenated to generate a fused vector.

8. The method according to claim 1, characterized in that The natural language understanding-based knowledge tracking model is optimized by a binary cross entropy loss function: The binary cross entropy loss function is: Where N is the number of training samples, is the actual answer of the i-th student at time step t+1 (1 for correct, 0 for wrong), is the probability of the correct answer predicted by the model.

Citation Information

Patent Citations

  • Personalized knowledge tracking method based on knowledge graph recommendation

    CN115827968A