A knowledge tracking method and system supporting dynamic context
By dynamically adjusting the attention mechanism and penalty function matrix, the problem that the knowledge tracking model cannot adapt to different context lengths is solved, accurate modeling of students' knowledge status and support for personalized learning paths are achieved, and the application effect in educational scenarios is improved.
Patent Information
- Application Number
- CN202510046737.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2045-01-13
AI Technical Summary
Existing knowledge tracking models based on attention mechanisms cannot effectively cope with the diversity of students' learning path lengths, resulting in a significant performance degradation in actual educational scenarios, which limits their application in large-scale personalized education.
The student's historical answer sequence is mapped into high-dimensional feature embedding through the question encoder and answer encoder. The multi-head self-attention mechanism and scaled dot product attention are combined to extract time-sensitive and context-dependent knowledge states, and the directional penalty function matrix is used to dynamically adjust the attention score matrix to enhance the model's adaptability to context length.
It significantly improves the application effect of the model in dynamic educational scenarios, provides accurate and efficient modeling of students' knowledge status, and supports the design and prediction of personalized learning paths.
Smart Images

Figure CN119830033B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of knowledge tracing, and in particular to a knowledge tracing method and system supporting dynamic context. Background Art
[0002] Knowledge tracing, a core technology in personalized learning and intelligent education systems, aims to predict students' mastery of new knowledge points by analyzing their historical behavior during the learning process. The goal of knowledge tracing is to dynamically capture changes in students' knowledge status and support the design of personalized learning paths by accurately predicting their mastery of knowledge points. Knowledge tracing can provide students with customized recommendations for content that requires reinforcement, avoiding the need to relearn already mastered knowledge. Knowledge tracing can help teachers monitor students' learning status in real time, promptly identify learning difficulties, and adjust teaching strategies. By providing personalized support for students of different ability levels, knowledge tracing can also help narrow learning gaps and promote educational equity.
[0003] While existing attention-based knowledge tracking models (such as AKT, simpleKT, and DTransformer) have achieved significant performance improvements, they all share a key issue: they use a fixed context length during both training and prediction. This makes them unable to effectively address the diverse lengths of students' learning paths in real-world educational scenarios. For example, some students may have only a few dozen learning interactions, while others may have accumulated thousands of interaction records. This limitation results in a significant performance degradation when encountering interaction sequences longer than those used during training, hindering the application of knowledge tracking models in real-world educational scenarios to achieve large-scale personalized education. Summary of the Invention
[0004] To address the above technical issues, the present invention provides a knowledge tracking method and system that supports dynamic context. Through a question encoder and an answer encoder, the student's historical answer sequence is mapped into a high-dimensional feature embedding, generating a question-level perception vector and a joint question-answer interaction representation. The attention score matrix is dynamically adjusted based on a directional penalty function matrix to enhance the model's adaptability to dynamic changes in context length. A multi-head self-attention mechanism and scaled dot-product attention are used to extract time-sensitive and context-dependent knowledge states from student interaction data.
[0005] The present invention discloses a knowledge tracking method supporting dynamic context, the method comprising:
[0006] Based on the student's question set, a knowledge tracking model that supports dynamic context length is constructed;
[0007] Based on the knowledge tracking model supporting dynamic context length, the prediction results of the final student answers are obtained.
[0008] Preferably, the knowledge tracking model supporting dynamic context length includes: a student learning behavior representation module, a knowledge state extraction module, a directional weighted offset module, and a student answer prediction module;
[0009] The student learning behavior representation module is used to describe the student's learning behavior pattern in detail by constructing a multi-dimensional feature embedding space based on representation learning theory;
[0010] The knowledge state extraction module is used to capture the deep student knowledge state based on the multi-head self-attention mechanism and dot product attention;
[0011] The directional weighted offset module is used to dynamically adjust the attention score matrix by introducing a directional weighted penalty function matrix to achieve dynamic adaptation of different context lengths;
[0012] The student answer prediction module is used to project the high-dimensional to low-dimensional knowledge state characteristics with a two-layer nonlinear fully connected network as the core, optimize the binary cross entropy loss function, dynamically adjust the model parameters, and obtain the final prediction result.
[0013] Preferably, based on representation learning theory, a multi-dimensional feature embedding space is constructed to finely describe students' learning behavior patterns, including:
[0014] For student S, the historical learning behavior includes T interaction processes, each of which is expressed as t {c t}, r t >, where t∈T, specifically, q t represents the question answered by the student at time step t, c t represents the question q answered by the student at time step t t The corresponding knowledge point. If a question corresponds to multiple knowledge points, then it is a set of multiple knowledge points {c t}, r t Indicates that the student answers question q at time step t t The answer, r t =1 means the student answered correctly, r t =0 means the student answered incorrectly;
[0015] For the questions answered by students, the encoder E(·) is used to perform feature mapping on the question sequence to obtain a high-dimensional vector representation of question-level perception:
[0016]
[0017] in, is the level of questions that can be trained, is the average feature representation of all knowledge points corresponding to the question, is the unique hot encoding of the knowledge point corresponding to the question, ⊙ represents bitwise multiplication, Represents bitwise addition;
[0018] For the student’s answer, the encoder is used to model the high-order interaction characteristics between the question knowledge points and the student’s answer through the embedding layer, thereby generating a joint question-answer interaction representation:
[0019]
[0020] Among them, v(c t , r t ) represents the average feature representation of all knowledge points corresponding to the question of the joint student answer, e(c t , r t ) represents the unique hot encoding of the knowledge points corresponding to the joint students’ questions.
[0021] Preferably, the multi-head self-attention mechanism and dot product attention are used to capture the deep student knowledge state, including:
[0022] Represent the high-dimensional vector x of the problem-level perception t and the joint question-answer interaction representation y t They are respectively used as query vector Q, key vector K and value vector V, namely:
[0023] Q = x t+1 ; K = {x1, ..., x t}; V = {y1, ..., y t};
[0024] A multi-head attention mechanism integrating scaled dot product attention is used to extract the knowledge state h from the student's historical answer sequence. t+1 :
[0025]
[0026] h t+1 =Concat(Head1, Head2, .., Head n );
[0027] Among them, Head represents the multi-head representation in the multi-head attention mechanism, Softmax represents the softmax function, represents the transpose of the key vector, represents the scaling factor of the scaled dot product attention, and d is the dimension of the key vector.
[0028] Preferably, dynamically adjusting the attention score matrix by introducing a directional weighted penalty function matrix to achieve dynamic adaptation of different context lengths includes:
[0029] The attention score matrix is calculated using the cosine similarity between the query vector and the key vector:
[0030]
[0031] The attention score matrix is dynamically adjusted through the directional penalty function matrix F:
[0032]
[0033] Among them, f ij is the element of the directional penalty function matrix F, i and j are the indices of the attention score matrix elements, δ is the directional coefficient that can be obtained through training, and the positive and negative values represent the positive and negative directions of the penalty. is a bullish representation with directionally weighted penalties, It is a knowledge state that has been directionally weighted penalized.
[0034] Preferably, a two-layer nonlinear fully connected network is used as the core to project the knowledge state features from high dimensions to low dimensions, optimize the binary cross entropy loss function, and dynamically adjust the model parameters to obtain the final prediction results including:
[0035] With two layers of nonlinear fully connected network as the core, the knowledge state is realized The high-dimensional to low-dimensional projection of Optimize and dynamically adjust model parameters to obtain the final prediction results of student answers
[0036]
[0037] Among them, σ represents the Sigmoid function, k1, k2, W1, W2 are learnable parameters, r t+1 The actual answer results of the students.
[0038] The present invention also discloses a knowledge tracking system supporting dynamic context, the system is used to implement any one of the methods described above, the system comprising: a construction module and a prediction module;
[0039] The building module is used to build a knowledge tracking model that supports dynamic context length based on the student's question set;
[0040] The prediction module is used to obtain the prediction result of the final student answer based on the knowledge tracking model supporting dynamic context length.
[0041] The present invention also discloses an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the methods described above when executing the program.
[0042] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed, any one of the methods described above is implemented.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] 1. The model of the present invention uses a directional weighted penalty module combined with a directional penalty function matrix to dynamically adapt to the context lengths of students' different learning interaction sequences, significantly improving the application effect of the model in dynamic educational scenarios.
[0045] 2. The student learning behavior representation module uses a question encoder and an answer encoder to map students' historical answer sequences into high-dimensional semantic features, and integrates multi-dimensional information of questions, knowledge points, and answer characteristics to provide accurate and efficient input representation.
[0046] 3. The knowledge state extraction module uses a multi-head self-attention mechanism and scaled dot product attention to efficiently extract time sensitivity and context embedding features in parallel computing, while capturing high-order feature interactions, providing deep support for student knowledge state modeling. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0048] Figure 1 A schematic flow chart of a knowledge tracking method supporting dynamic context according to an embodiment of the present invention;
[0049] Figure 2 This is a schematic diagram of the knowledge tracking model structure supporting dynamic context length according to an embodiment of the present invention;
[0050] Figure 3 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention.
[0051] 1010 , processor; 1020 , memory; 1030 , input / output interface; 1040 , communication interface; 1050 , bus. DETAILED DESCRIPTION
[0052] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0053] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should have the usual meanings understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative position relationships. When the absolute position of the described object changes, the relative position relationship may also change accordingly.
[0054] First, some technical terms used in this invention are explained:
[0055] Context length refers to the maximum length of text that the model can process, that is, the maximum length of text that the model can understand and generate without affecting performance. In natural language processing (NLP), long context is crucial for the model to understand complex sentences and paragraphs because it allows the model to consider more contextual information to make accurate predictions or generate.
[0056] The knowledge tracing model is an educational technology designed to predict a student's mastery and performance on future knowledge points by analyzing their learning history and behavioral data. It is often used in intelligent teaching systems (ITS) to provide personalized learning experiences and adaptive instruction. The main types of knowledge tracing models include: 1. Bayesian knowledge tracing (BKT), 2. Deep learning-based knowledge tracing (DKT), 3. Structure-aware inductive knowledge tracing (SINKT), and 4. Stable knowledge tracing model (SKT-LT).
[0057] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0058] Example 1
[0059] As can be seen from the background technology,
[0060] While existing attention-based knowledge tracking models (such as AKT, simpleKT, and DTransformer) have achieved significant performance improvements, they all share a key issue: they use a fixed context length during both training and prediction. This makes them unable to effectively address the diverse lengths of students' learning paths in real-world educational scenarios. For example, some students may have only a few dozen learning interactions, while others may have accumulated thousands of interaction records. This limitation results in a significant performance degradation when encountering interaction sequences longer than those used during training, hindering the application of knowledge tracking models in real-world educational scenarios to achieve large-scale personalized education.
[0061] like Figure 1 As shown, an embodiment of the present invention provides a knowledge tracking method supporting dynamic context, the method comprising:
[0062] Based on the student's question set, a knowledge tracking model that supports dynamic context length is constructed;
[0063] Based on the knowledge tracking model supporting dynamic context length, the prediction results of the final student answers are obtained.
[0064] In this embodiment, if Figure 2 As shown in Figure 2, the knowledge tracking model that supports dynamic context length includes: student learning behavior representation module, knowledge state extraction module, directional weighted offset module, and student answer prediction module;
[0065] The student learning behavior representation module is used to describe students' learning behavior patterns in detail by constructing a multi-dimensional feature embedding space based on representational learning theory;
[0066] The knowledge state extraction module is used to capture the deep student knowledge state based on the multi-head self-attention mechanism and dot-product attention;
[0067] Directional weighted offset module, which is used to dynamically adjust the attention score matrix by introducing a directional weighted penalty function matrix to achieve dynamic adaptation to different context lengths;
[0068] The student answer prediction module is used to project the high-dimensional to low-dimensional knowledge state characteristics with a two-layer nonlinear fully connected network as the core, optimize the binary cross entropy loss function, dynamically adjust the model parameters, and obtain the final prediction results.
[0069] In this embodiment, based on representation learning theory, a multi-dimensional feature embedding space is constructed to finely describe the student's learning behavior pattern, including:
[0070] For student S, the historical learning behavior includes T interaction processes, each of which is expressed as t {ct}, r t >, where t∈T, specifically, q t represents the question answered by the student at time step t, c t represents the question q answered by the student at time step t t The corresponding knowledge point. If a question corresponds to multiple knowledge points, then it is a set of multiple knowledge points {c t}, r t Indicates that the student answers question q at time step t t The answer, r t =1 means the student answered correctly, r t =0 means the student answered incorrectly;
[0071] For the questions answered by students, the encoder E(·) is used to perform feature mapping on the question sequence to obtain a high-dimensional vector representation of question-level perception:
[0072]
[0073] in, is the level of questions that can be trained, is the average feature representation of all knowledge points corresponding to the question, is the unique hot encoding of the knowledge point corresponding to the question, ⊙ represents bitwise multiplication, Represents bitwise addition;
[0074] For the student’s answer, the encoder is used to model the high-order interaction characteristics between the question knowledge points and the student’s answer through the embedding layer, thereby generating a joint question-answer interaction representation:
[0075]
[0076] Among them, v(c t , r t ) represents the average feature representation of all knowledge points corresponding to the question of the joint student answer, e(c t , r t ) represents the unique hot encoding of the knowledge points corresponding to the joint students’ questions.
[0077] The student learning behavior representation module effectively enhances the representation ability of feature embedding through the question encoder and answer encoder, providing more accurate feature input for subsequent knowledge state extraction.
[0078] In this embodiment, the multi-head self-attention mechanism and dot-product attention are used to capture the deep student knowledge state, including:
[0079] Represent the high-dimensional vector x of the problem-level perception tAnd the joint question-answer interaction representation yt is respectively used as the query vector Q, key vector K and value vector V, that is:
[0080] Q = x t+1 ; K = {x1, ..., x t}; V = {y1, ..., y t};
[0081] A multi-head attention mechanism integrating scaled dot product attention is used to extract the knowledge state h from the student's historical answer sequence. t+1 :
[0082]
[0083] h t+1 =Concat(Head1, Head2, .., Head n );
[0084] Among them, Head represents the multi-head representation in the multi-head attention mechanism, Softmax represents the softmax function, represents the transpose of the key vector, represents the scaling factor of the scaled dot product attention, and d is the dimension of the key vector.
[0085] This module fully utilizes the parallel computing power and hierarchical feature extraction advantages of the attention mechanism, combined with the ability of scaled dot product attention in encoding the temporal dependencies and contextual embedding characteristics inherent in student interaction data, while the multi-head attention structure further captures multi-dimensional high-order feature interaction relationships.
[0086] In this embodiment, the dynamic adaptation of the attention score matrix to different context lengths is achieved by introducing a directional weighted penalty function matrix, including:
[0087] The attention score matrix is calculated using the cosine similarity between the query vector and the key vector:
[0088]
[0089] The attention score matrix is dynamically adjusted through the directional penalty function matrix F:
[0090]
[0091] Among them, f ij is the element of the directional penalty function matrix F, i and j are the indices of the attention score matrix elements, that is, the distance between the question currently answered by the student and the history question. The larger the difference between i and j, the longer the student's history answer sequence. δ is the directional coefficient that can be obtained through training. The positive and negative values represent the positive and negative directions of the penalty. is a bullish representation with directionally weighted penalties, It is a knowledge state that has been directionally weighted penalized.
[0092] By dynamically adjusting the attention score matrix through the directional penalty function matrix, the scaling dot product attention mechanism can be enhanced to capture the dynamic attenuation of students' knowledge status and realize dynamic support of context.
[0093] In this embodiment, a two-layer nonlinear fully connected network is used as the core to project the knowledge state features from high dimensions to low dimensions, optimize the binary cross entropy loss function, and dynamically adjust the model parameters to obtain the final prediction results including:
[0094] With two layers of nonlinear fully connected network as the core, the knowledge state is realized The high-dimensional to low-dimensional projection of Optimize and dynamically adjust model parameters to obtain the final prediction results of student answers
[0095]
[0096] Among them, σ represents the Sigmoid function, k1, k2, W1, W2 are learnable parameters, r t+1 The actual answer results of the students.
[0097] The technical solution of the present invention,
[0098] Through the question encoder and answer encoder, the student's historical answer sequence is mapped into high-dimensional feature embedding to generate question-level perception vectors and joint question-answer interaction representations.
[0099] The attention score matrix is dynamically adjusted based on the directional penalty function matrix to enhance the model's adaptability to dynamic changes in context length.
[0100] Multi-head self-attention mechanism and scaled dot-product attention are used to extract time-sensitive and context-dependent knowledge states from student interaction data.
[0101] It should be noted that the method of the embodiments of the present disclosure can be performed by a single device, such as a computer or server. The method of the embodiments of the present disclosure can also be applied in a distributed scenario, where multiple devices cooperate to perform the method. In such a distributed scenario, one of the multiple devices may only perform one or more steps of the method of the embodiments of the present disclosure, and the multiple devices will interact with each other to complete the method.
[0102] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, it should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention. The actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-tasking and parallel processing are also possible or may be advantageous.
[0103] Example 2
[0104] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present invention further discloses a knowledge tracking system supporting dynamic context, wherein the system is used to implement any of the above-mentioned methods, construction modules and prediction modules;
[0105] A building module for constructing a knowledge tracking model that supports dynamic context length based on the student's question set;
[0106] The prediction module is used to obtain the prediction result of the final student answer based on the knowledge tracking model supporting dynamic context length.
[0107] The system of the above embodiment is used to implement a corresponding knowledge tracking method supporting dynamic context in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0108] It should be noted that the above-mentioned knowledge tracking system supporting dynamic context is embodied in the form of functional units. The term "module" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.
[0109] For example, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the aforementioned functionality. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (e.g., a shared processor, a dedicated processor, or a group of processors) and memory for executing one or more software or firmware programs, combined logic circuits, and / or other suitable components that support the described functionality.
[0110] Example 3
[0111] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, this embodiment also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the program, it implements a knowledge tracking method supporting dynamic context as described in any of the above embodiments.
[0112] Figure 3 10 is a schematic diagram showing a more specific hardware structure of an electronic device provided in this embodiment. The device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are communicatively connected to each other within the device via the bus 1050.
[0113] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0114] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, etc. The memory 1020 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0115] The input / output interface 1030 is used to connect input / output modules to implement information input and output. The input / output modules can be configured as components within the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and output devices may include a display, speaker, vibrator, indicator light, etc.
[0116] The communication interface 1040 is used to connect to a communication module (not shown) to enable communication between the device and other devices. The communication module can communicate via a wired method (e.g., USB (Universal Serial Bus), network cable, etc.) or a wireless method (e.g., mobile network, WIFI (Wireless Fidelity), Bluetooth, etc.).
[0117] The bus 1050 comprises a path for transmitting information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 ).
[0118] It should be noted that although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040, and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, it will be understood by those skilled in the art that the above device may only include the components necessary to implement the embodiments of this specification, and does not necessarily include all the components shown in the figure.
[0119] The system of the above embodiment is used to implement a corresponding knowledge tracking method supporting dynamic context in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0120] Example 4
[0121] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, this embodiment also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute a knowledge tracking method supporting dynamic context as described in any of the above embodiments.
[0122] The computer-readable media of this embodiment include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0123] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute a knowledge tracking method supporting dynamic context as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0124] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Within the scope of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.
[0125] In addition, to simplify the description and discussion, and so as not to obscure the embodiments of the present disclosure, known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, devices may be shown in the form of block diagrams to avoid obscuring the embodiments of the present disclosure, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure are to be implemented (i.e., these details should be fully within the purview of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it will be apparent to those skilled in the art that the embodiments of the present disclosure may be implemented without these specific details or with variations in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0126] Although the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those skilled in the art based on the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0127] Therefore, the units of each example described in the embodiments of this application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0128] The embodiments of the present disclosure are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A knowledge tracking method supporting dynamic context, characterized in that: The method comprises: Based on the student's question set, a knowledge tracking model that supports dynamic context length is constructed; Based on the knowledge tracking model supporting dynamic context length, a prediction result of the final student answer is obtained; The knowledge tracking model supporting dynamic context length includes: a student learning behavior representation module, a knowledge state extraction module, a directional weighted offset module, and a student answer prediction module; The student learning behavior representation module is used to describe the student's learning behavior pattern in detail by constructing a multi-dimensional feature embedding space based on representation learning theory; The knowledge state extraction module is used to capture the deep student knowledge state based on the multi-head self-attention mechanism and dot product attention; The directional weighted offset module is used to dynamically adjust the attention score matrix by introducing a directional weighted penalty function matrix to achieve dynamic adaptation of different context lengths; The student answer prediction module is used to project the knowledge state features from high dimensions to low dimensions using a two-layer nonlinear fully connected network as the core, optimize the binary cross entropy loss function, and dynamically adjust the model parameters to obtain the final prediction result; Based on representation learning theory, we construct a multi-dimensional feature embedding space to finely describe students' learning behavior patterns, including: For student S, the historical learning behavior includes T interaction processes, each of which is expressed as t ,{c t },r t >, where t∈T, specifically, q t represents the question answered by the student at time step t, c t represents the question q answered by the student at time step t t The corresponding knowledge point. If a question corresponds to multiple knowledge points, then it is a set of multiple knowledge points {c t }, r t Indicates that the student answers question q at time step t t The answer, r t =1 means the student answered correctly, r t =0 means the student answered incorrectly; For the questions answered by students, the encoder E(·) is used to perform feature mapping on the question sequence to obtain a high-dimensional vector representation of question-level perception: in, is the level of questions that can be trained, is the average feature representation of all knowledge points corresponding to the question, is the unique hot encoding of the knowledge point corresponding to the question, ⊙ represents bitwise multiplication, Represents bitwise addition; For the student’s answer, the encoder is used to model the high-order interaction characteristics between the question knowledge points and the student’s answer through the embedding layer, thereby generating a joint question-answer interaction representation: in, The average feature representation of all knowledge points corresponding to the question of the joint student answer, Indicates the unique hot encoding of the knowledge points corresponding to the joint students' questions; Capturing deep student knowledge based on multi-head self-attention mechanism and dot product attention includes: Represent the high-dimensional vector x of the problem-level perception t and the joint question-answer interaction representation y t They are respectively used as query vector Q, key vector K and value vector V, namely: Q=x t+1 ;K={x1,...,x t };V={y1,...,y t }; A multi-head attention mechanism integrating scaled dot product attention is used to extract the knowledge state h from the student's historical answer sequence. t+1 : h t+1 =Concat(Head1,Head2,...,Head n ); Among them, Head represents the multi-head representation in the multi-head attention mechanism, Softmax represents the softmax function, represents the transpose of the key vector, represents the scaling factor of the scaled dot product attention, and d is the dimension of the key vector; By introducing a directional weighted penalty function matrix to dynamically adjust the attention score matrix to achieve dynamic adaptation of different context lengths, including: The attention score matrix is calculated using the cosine similarity between the query vector and the key vector: The attention score matrix is dynamically adjusted through the directional penalty function matrix F: Among them, f ij is the element of the directional penalty function matrix F, i and j are the indices of the attention score matrix elements, δ is the directional coefficient that can be obtained through training, and the positive and negative values represent the positive and negative directions of the penalty. is a bullish representation with directionally weighted penalties, is the knowledge state with directionally weighted penalties; With a two-layer nonlinear fully connected network as the core, the high-dimensional to low-dimensional projection of knowledge state features is performed, the binary cross entropy loss function is optimized, and the model parameters are dynamically adjusted to obtain the final prediction results including: With two layers of nonlinear fully connected network as the core, the knowledge state is realized The high-dimensional to low-dimensional projection of Optimize and dynamically adjust model parameters to obtain the final prediction results of student answers Among them, σ represents the Sigmoid function, k1, k2, W1, W2 are learnable parameters, r t+1 The actual answer results of the students.
2. A knowledge tracking system supporting dynamic context, the system being used to implement the method of claim 1, characterized in that: The system includes: a construction module and a prediction module; The building module is used to build a knowledge tracking model that supports dynamic context length based on the student's question set; The prediction module is used to obtain the prediction result of the final student answer based on the knowledge tracking model supporting dynamic context length.
3. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the method according to claim 1 is implemented when the processor executes the program.
4. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed, the method according to claim 1 is implemented.
Citation Information
Patent Citations
Knowledge tracking method and system based on self-attention mechanism
CN113283585A
Question and concept double-attention coding knowledge tracking method and system
CN118278520A