Test question recommendation model training method, test question recommendation method and test question recommendation system

Through multi-relationship interactive graph convolution technology and comparative learning optimization, the problem of dynamic features and data sparsity in personalized test question recommendation is solved, the accuracy and comprehensiveness of recommendation are improved, and the performance of the personalized recommendation system is improved.

CN118820596AActive Publication Date: 2024-10-22SUN YAT SEN UNIV

Patent Information

Application Number
CN202410946794.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-22
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

Existing personalized test question recommendation models fail to pay enough attention to the dynamic characteristics of learners and test questions, and due to data sparsity and cold start problems, they rely too much on answer history, resulting in insufficient recommendation accuracy and comprehensiveness.

Method used

Multi-relationship interactive graph convolution technology is used to construct an enhanced embedding representation through the matrix of test questions that the learner did not do well and all the questions correctly, and construct the interactive relationship representation of the learner and the test questions. It combines contrastive learning and loss function optimization to reduce data sparsity and history. dependency to enhance personalized recommendation capabilities.

Benefits of technology

It significantly improves the accuracy and comprehensiveness of personalized test question recommendation, enhances the dynamic representation ability of learners and test question characteristics, and improves the overall performance of the recommendation system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820596A_ABST
    Figure CN118820596A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of personalized recommendation, and discloses a test question recommendation model training method and a test question recommendation method and system.The test question recommendation model training method comprises the steps that each node in a multi-relation interaction graph is enhanced through preset multi-relation graph convolution, and enhanced embedded representation corresponding to the node is obtained; comparing and learning preferences among different learners through sample pair interaction relationship characterization, and constructing a learner comparison loss function; obtaining text label representation and test question representation by comparing the label information of the learning test questions with learners who do not do the test questions, and constructing a test question comparison loss function according to the text label representation and the test question representation; constructing a loss function of the learner to do test questions completely and a loss function of the learner to do bad test questions; and performing model training according to the learner comparison loss function, the test question comparison loss function, the learner all-do test question loss function and the learner bad test question loss function to obtain a target recommendation model. According to the method, the accuracy and comprehensiveness of personalized recommendation are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of personalized recommendation technology, and in particular to a training method for a test question recommendation model, a test question recommendation method and a system. Background Art

[0002] The traditional teaching model adopts indiscriminate teaching and blindly exercises, which increases the burden on learners. With the rise of smart education and intelligent-assisted teaching, many online education platforms have emerged at home and abroad, and these platforms have received great attention. Therefore, how to accurately recommend test questions suitable for learners has become a hot issue.

[0003] However, existing research only assumes that all learners and test questions have static and unchanging characteristics, and uses fixed patterns (such as latent vectors) to model them, but fails to pay enough attention to the dynamic characteristics of learners and test questions that change over time. Due to data sparsity and cold start problems, many recommendation algorithms rely too much on answering history, and have insufficient understanding of the various interactive relationships between learners and their adjacent learners (neighbors) and test questions, as well as the propagation and role of collaborative information, making them difficult to characterize.

[0004] Therefore, it is urgent to solve how to reduce the data sparsity and answer history dependence of the model in order to improve the accuracy and comprehensiveness of personalized recommendations. Summary of the invention

[0005] The purpose of the present invention is to provide a training method for a test question recommendation model, a test question recommendation method and a system, so as to improve the accuracy and comprehensiveness of personalized recommendations.

[0006] In order to achieve the above-mentioned object, in a first aspect, the present invention provides a training method for a test question recommendation model, the training method comprising: Obtain a multi-relationship interaction graph; the multi-relationship interaction graph is constructed with test questions and learners as nodes, and with an interaction matrix of test questions that learners do not answer well and an interaction matrix of test questions that learners answer correctly as edges; the interaction matrix of test questions that learners do not answer well represents at least one knowledge point corresponding to the test questions that learners answer incorrectly, and the interaction matrix of test questions that learners answer correctly represents all knowledge points corresponding to the test questions that learners answer correctly; Using a preset multi-relation graph convolution to enhance each of the nodes in the multi-relation interaction graph, to obtain an enhanced embedded representation corresponding to the node; wherein the enhanced embedded representation includes a learner enhanced embedded representation and a test question enhanced embedded representation; constructing different sample pair interaction relationship representations according to the learner enhanced embedding representation and the test question enhanced embedding representation, comparing and learning preferences between different learners through the sample pair interaction relationship representations, and constructing a learner comparison loss function; According to the learner enhanced embedding representation, a text label representation and a test question representation are obtained by comparing the label information of the learning test questions with the learner who did not do well in the test questions, and a test question contrast loss function is constructed according to the text label representation and the test question representation; According to the learner enhanced embedding representation and the test question enhanced embedding representation, constructing a loss function for all test questions answered correctly by the learner and a loss function for test questions answered poorly by the learner; Model training is performed according to the learner comparison loss function, the test question comparison loss function, the learner's correct test question loss function and the learner's poor test question loss function to obtain a target recommendation model.

[0007] In one embodiment, before enhancing each of the nodes in the multi-relationship interaction graph using a preset multi-relationship graph convolution to obtain an enhanced embedding representation corresponding to the node, the training method further includes: Constructing a multi-relation adjacency matrix based on the interaction matrix of test questions that the learner did not answer well and the interaction matrix of test questions that the learner answered correctly; Based on the multi-relation adjacency matrix, each of the nodes in the multi-relation interaction graph is enhanced using a preset multi-relation graph convolution to obtain an enhanced embedding representation corresponding to the node.

[0008] In one embodiment, the step of constructing a multi-relation adjacency matrix based on the learner's poorly answered test question interaction matrix and the learner's correctly answered test question interaction matrix includes: constructing a sparse interaction matrix according to the interaction matrix of test questions that the learner cannot answer correctly and the interaction matrix of test questions that the learner answers correctly; The sparse interaction matrix is ​​transformed to obtain the multi-relation adjacency matrix.

[0009] In one embodiment, based on the multi-relation adjacency matrix, each of the nodes in the multi-relation interaction graph is enhanced by using a preset multi-relation graph convolution to obtain an enhanced embedding representation corresponding to the node, including: Obtaining an input vector of the node; According to the input vector, a preset nonlinear co-embedding function is used to extract an initial feature embedding vector of the node; In a convolution layer of any layer of the multi-relation graph convolution, information of neighbor nodes of any node in the multi-relation interaction graph is aggregated through the multi-relation adjacency matrix to obtain an updated embedding vector of any node; Traverse each of the convolutional layers, and for each of the nodes, determine the average value of the updated embedding vectors corresponding to the nodes in all the convolutional layers to obtain the enhanced embedding representation corresponding to the node.

[0010] In one embodiment, constructing different sample pair interaction relationship representations according to the learner enhanced embedding representation and the question enhanced embedding representation, comparing and learning preferences between different learners through the sample pair interaction relationship representations, and constructing a learner comparison loss function includes: The learner enhanced embedding representation and the test question enhanced embedding representation are learned through the MLP layer to generate different sample pair interaction relationship representations; wherein the sample pair interaction relationship representations include positive sample pair interaction relationship representations, fine-grained negative sample pair interaction relationship representations and coarse-grained negative sample pair interaction relationship representations; the positive sample pair interaction relationship representations are used to represent the same learner's answer situation on the same test question, including the interactive behavior of not answering the test question well and answering all the test questions correctly; the fine-grained negative sample pair interaction relationship representations are used to represent the answer situation of different learners on the same test question, including the interactive behavior of not answering the test question well; the coarse-grained negative sample pair interaction relationship representations are used to represent the answer situation of different learners on different test questions, including the interactive behavior of not answering the test question well; Constructing a fine-grained loss function according to the similarity between the positive sample pair interaction relationship representation and the fine-grained negative sample pair interaction relationship representation; Constructing a coarse-grained loss function according to the similarity between the positive sample pair interaction relationship representation and the coarse-grained negative sample pair relationship representation; The fine-grained loss function and the coarse-grained loss function are weighted to obtain the learner contrast loss function.

[0011] In one embodiment, the embedding representation is enhanced according to the learner, a text label representation and a question representation are obtained by comparing the label information of the learning question and the learner who did not do well in the question, and a question contrast loss function is constructed according to the text label representation and the question representation, including: Extracting label information of the test question through a text encoder to obtain a text label representation; The learner enhanced embedded representation is selected according to a preset selection rule to obtain the learner embedded representation who did not do well in the test question; The embedding representation of the learner who failed to answer the test question is converted into a test question representation by a test question encoder; Constructing a text label loss function and a test question loss function according to the similarity between the text label representation and the test question representation; The text label loss function and the test question loss function are averaged to obtain the test question comparison loss function.

[0012] In one embodiment, constructing a loss function for all correct questions answered by the learner and a loss function for questions answered poorly by the learner based on the learner enhanced embedded representation and the question enhanced embedded representation includes: Determine, by a fully connected neural network, a score function for test questions that the learner cannot answer well and a score function for test questions that the learner answers correctly according to the learner enhanced embedded representation and the test question enhanced embedded representation; Using a binary cross entropy loss function to construct a loss function for the initial learner's poorly done test questions and a loss function for the initial learner's fully correct test questions respectively for the learner's poorly done test question score function and the learner's fully correct test question score function; The preset relative difficulty coefficient is optimized using mean square error to obtain a relative difficulty coefficient loss function of a test question that the learner cannot answer well and a relative difficulty coefficient loss function of a test question that the learner answers correctly; wherein the relative difficulty coefficient represents the learner's mastery of the knowledge points in the test question; The loss function for the learner to get all the questions right is obtained by summing the loss function for the initial learner to get all the questions right and the loss function for the relative difficulty coefficient of the questions that the learner gets all the questions right; the loss function for the learner to get the questions wrong is obtained by summing the loss function for the initial learner to get the questions right and the loss function for the relative difficulty coefficient of the questions that the learner gets wrong.

[0013] In a second aspect, an embodiment of the present invention provides a test question recommendation method, the recommendation method comprising: Obtain a target multi-relationship interaction graph; wherein the target multi-relationship interaction graph is constructed with target test questions and learners to be recommended as nodes, and with interaction matrices of target test questions that the learners to be recommended do not do well and interaction matrices of target test questions that the learners to be recommended do all right as edges; Input the target multi-relationship interaction graph into the target recommendation model obtained by the training method of the test question recommendation model described above for prediction, and obtain a target recommended learner list corresponding to the target test question; The target test question is recommended to the learners in the target recommended learner list.

[0014] In a third aspect, an embodiment of the present invention provides a training system for a test question recommendation model, the training system comprising: An interaction graph acquisition module is used to acquire a multi-relation interaction graph; the multi-relation interaction graph is constructed with test questions and learners as nodes, and with an interaction matrix of test questions that learners do not answer well and an interaction matrix of test questions that learners answer correctly as edges; the interaction matrix of test questions that learners do not answer well represents at least one knowledge point corresponding to the test questions that learners answer incorrectly, and the interaction matrix of test questions that learners answer correctly represents all knowledge points corresponding to the test questions that learners answer correctly; A node enhancement module, used to enhance each of the nodes in the multi-relationship interaction graph using a preset multi-relationship graph convolution to obtain an enhanced embedded representation corresponding to the node; wherein the enhanced embedded representation includes a learner enhanced embedded representation and a test question enhanced embedded representation; A learner comparison module, used to construct different sample pair interaction relationship representations according to the learner enhanced embedding representation and the test question enhanced embedding representation, compare and learn the preferences between different learners through the sample pair interaction relationship representations, and construct a learner comparison loss function; A test question comparison module is used to enhance the embedding representation according to the learner, obtain a text label representation and a test question representation by comparing the label information of the learning test questions and the learner who did not do well in the test questions, and construct a test question comparison loss function according to the text label representation and the test question representation; A loss function construction module, used to construct a loss function for all correct questions and a loss function for questions that the learner cannot answer correctly based on the learner enhanced embedding representation and the question enhanced embedding representation; The model training module is used to perform model training according to the learner comparison loss function, the test question comparison loss function, the learner's correct test question loss function and the learner's poor test question loss function to obtain a target recommendation model.

[0015] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising Memory, processor, and A computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the training method of the test question recommendation model or the test question recommendation method described above is implemented.

[0016] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the program is executed by a processor, it implements the above-mentioned training method of the test question recommendation model or the above-mentioned test question recommendation method.

[0017] Compared with the prior art, the training method, test question recommendation method and system of a test question recommendation model in the embodiment of the present invention have the following beneficial effects: The present invention utilizes preset multi-relation graph convolution to enhance each node in the acquired multi-relation interaction graph to capture the collaborative information between the learner and its neighbors and the test questions, thereby enhancing the embedding of the learner and the test questions. By constructing loss functions from two perspectives, namely learner comparative learning and test question comparative learning, the feature representation of test questions and learners is assisted in optimizing, the differences in the preferences of different learners in selecting and answering test questions are increased, the different interaction preferences between the same learner and the test questions are reduced, and the alignment and mutual interpretation of test questions and labels are optimized, thereby fundamentally enhancing the ability and accuracy of personalized test question recommendations. In addition, the model training is carried out in combination with the loss function of the test questions that the learner has done all correctly and the loss function of the test questions that the learner has done poorly, which comprehensively reduces the data sparsity and the dependence on the answer history, and significantly improves the overall performance of personalized test question recommendations. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 A flowchart of a training method for a test question recommendation model provided by an embodiment of the present invention; Figure 2 A multi-relationship interaction diagram provided by an embodiment of the present invention; Figure 3 A schematic diagram of the structure of a recommendation model provided by an embodiment of the present invention; Figure 4 A flowchart of a test question recommendation method provided by an embodiment of the present invention; Figure 5 A block diagram of a training system for a test question recommendation model provided by an embodiment of the present invention; Figure 6 A schematic diagram of the internal structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0019] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0020] Obviously, the drawings described below are only some examples or embodiments of the present invention. For ordinary technicians in this field, the present invention can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed by the present invention, some changes in design, manufacturing or production based on the technical content disclosed by the present invention are just conventional technical means, and should not be understood as insufficient content disclosed by the present invention.

[0021] Reference to "embodiments" in the present invention means that the specific features, structures, or characteristics described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in the present invention may be combined with other embodiments without conflict.

[0022] Unless otherwise defined, the technical terms or scientific terms involved in the present invention shall have the usual meanings understood by persons with ordinary skills in the technical field to which the present invention belongs. The words "one", "a", "a", "the" and the like involved in the present invention do not indicate a quantity limitation and may indicate the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in the present invention are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include unlisted steps or units, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in the present invention are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in the present invention refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships. For example, "A and / or B" may indicate: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects in the front and back relation are in an "or" relationship. The terms "first", "second", "third" and the like involved in the present invention are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0023] The traditional teaching model adopts indiscriminate teaching and blindly exercises to increase the burden on learners. With the high attention paid to smart education and intelligent-assisted teaching, many online education platforms have emerged at home and abroad. However, the massive resource data brought by these platforms often leads to the problem of "information overload and confusion in choice", especially how to accurately recommend appropriate test questions to learners has become a hot topic.

[0024] At present, the recommendation system of "recommending items or projects to users" is applied to "recommending test questions to learners". In terms of personalized test question recommendation, many scholars have conducted a series of research and achieved results on the three core tasks of recommendation models: learner modeling, test question modeling, and recommendation algorithms. However, in practical applications, existing models have problems such as recommendation accuracy, adaptability to changes in learning states, data sparsity, and cold start. The main reason is that the perception of personalized cognitive levels such as the static and dynamic characteristics of learners and test questions, learners' interactive preferences for test questions, and their knowledge mastery is not sufficient, and the representation is not comprehensive, rich, and flexible enough.

[0025] In terms of recommendation based on user interest preferences, Top-N recommendation provides an effective personalized service method for users with different preferences. However, the current most advanced test question recommendation models, including personalized recommendation models based on cognitive diagnostic methods (CDM), have significant differences in recommendation performance for learners with different cognitive levels, which seriously affects the service quality of personalized recommendation.

[0026] Existing studies often simply assume that all learners and test questions have static and unchanging characteristics, and use fixed patterns (such as latent vectors) to model their embedding, while ignoring the dynamic characteristics of learners and test questions that change over time. In addition, many recommendation algorithms rely heavily on answering history due to data sparsity and cold start problems, but lack understanding of the various interactive relationships between learners, their neighbors, and test questions, as well as the propagation and role of collaborative information, making them difficult to characterize.

[0027] Learner modeling aims to accurately diagnose and characterize learner information, and to make it as rich as possible in personalized semantics by mining explicit and latent features, such as basic information, demand goals, learning preferences, behavioral characteristics, and knowledge mastery level. Current modeling methods are mainly based on knowledge tracking (KT) and cognitive diagnosis (CD). Test question modeling focuses on semantic representation and knowledge analysis of test questions, involving classical measurement theory (CTT) and multimodal deep semantic representation.

[0028] The personalized test question recommendation algorithm recommends appropriate test questions to learners based on the comprehensive consideration of the matching between learners' personalized characteristics and test question characteristics. The main recommendation algorithms currently include collaborative filtering (CF), cognitive diagnostic method (CDM) and deep learning (DL). Among them, CDM is widely used due to its dynamic cognitive level perception ability, including IRT, DINA and neural network cognitive diagnostic models.

[0029] However, the existing personalized test question recommendation models still face challenges in comprehensively, richly and flexibly representing the static and dynamic characteristics of learners and test questions, learners' interactive preferences for test questions, and their knowledge mastery, etc. Personalized cognitive levels. In particular, the lack of real-time perception and representation capabilities of dynamically changing learners and test question characteristics limits the effectiveness and adaptability of the model.

[0030] Based on the above situation, an embodiment of the present invention provides a training method for a test question recommendation model, a test question recommendation method and a system.

[0031] In a first aspect, an embodiment of the present invention provides a method for training a test question recommendation model. Figure 1 A flowchart of a training method for a test question recommendation model provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method comprises the following steps: Step S101, obtaining a multi-relationship interaction graph; the multi-relationship interaction graph is constructed with test questions and learners as nodes, and with an interaction matrix of test questions that learners do not answer well and an interaction matrix of test questions that learners answer correctly as edges; the interaction matrix of test questions that learners do not answer well represents at least one knowledge point corresponding to the test questions that the learners answer incorrectly, and the interaction matrix of test questions that the learners answer correctly represents all knowledge points corresponding to the test questions that the learners answer correctly.

[0032] In this embodiment, in order to reduce the data sparsity and answer history dependence of the model, it is necessary to consider the multiple interactive behaviors between learners and test questions so that subsequent model training can fully understand the learners' preferences, needs, etc., thereby improving the accuracy of personalized recommendation. The present invention first defines a set of graph data, with the test question node set V i and the learner node set V u , with different interaction relationships between learners and test questions as edges, two types of heterogeneous graphs are constructed, and multi-relation interaction graphs are constructed based on these two types of heterogeneous graphs. Figure 2-Figure 3 , Figure 2 A multi-relationship interaction diagram provided by an embodiment of the present invention, Figure 3 The structural diagram of the recommendation model provided by the embodiment of the present invention is as follows: Do it all right interactive diagram G p =(V,R p ): Contains the learner node set V u and the test node set V i , and the learner's correct answer interaction matrix R p .like Figure 2 Each test question i that is answered correctly by learner u is connected to only one learner u.

[0033] Poor interactive graph G b =(V,R b ): Contains the learner node set V u and the test node set V i , and the learner's poor test interaction matrix R b .like Figure 2 Each test question i that is not answered well by learner u is connected to at least one learner u. Among them, the interaction graph G between the same learner and the test question is b There is only one edge in , which ensures the uniqueness of the interaction relationship.

[0034] Multi-relationship interaction graph G total =(G p , G b ): Make all the interactions G p And do not do well in interactive graph G b A graph composed of Figure 2It provides a comprehensive view to analyze the interaction between learners and test questions.

[0035] Step S102: Use a preset multi-relation graph convolution to enhance each node in the multi-relation interaction graph to obtain an enhanced embedded representation corresponding to the node; wherein the enhanced embedded representation includes a learner enhanced embedded representation and a test question enhanced embedded representation.

[0036] Specifically, Multi-Relation Graph Convolution (MRGC) is an extension of the graph convolutional network (GCN). The core idea of ​​MRGC is to capture and integrate the information of different relations in the multi-relation interaction graph to improve the learning ability of node representation. Specifically, MRGC learns the embedded representation of each node and interaction relationship in the graph, which captures the collaborative information between the learner, its neighbors and the test questions. The high-level features of the graph data are gradually extracted through multi-layer convolution operations. Each layer of convolution processes the features of the node and its neighbors to learn more abstract feature representations. The information of neighbor nodes from different relationship types is integrated into each node, making the generated enhanced embedded representation more comprehensive, rich and flexible, making full use of the multiple interaction relationships between learners and test questions and the contextual features of the test questions, and reducing data sparsity and historical answer dependency.

[0037] In some embodiments, before using a preset multi-relationship graph convolution to enhance each node in the multi-relationship interaction graph to obtain an enhanced embedded representation corresponding to the node, the training method also includes: constructing a multi-relationship adjacency matrix based on the interaction matrix of questions that learners do not answer well and the interaction matrix of questions that learners answer correctly; based on the multi-relationship adjacency matrix, using a preset multi-relationship graph convolution to enhance each node in the multi-relationship interaction graph to obtain an enhanced embedded representation corresponding to the node.

[0038] Specifically, GCN is used in multi-relation graph convolution to iteratively combine neighbor information to update the representation of the node. In this network structure, the neighbors of the node and its high-order connection relationship are determined by the multi-relation adjacency matrix Madj. Specifically, the multi-relation adjacency matrix is: Among them, R total represents the total interaction matrix between learners and test questions, including the interaction matrix R of all correct test questions answered by learners p The interaction matrix R of the test questions that the learners cannot do well b , (R total ) T YesR totalThe transpose of represents the opposite interaction relationship. The structure of the multi-relation adjacency matrix ensures symmetry and interaction between two types of nodes (learners and test questions), providing a basis for subsequent multi-relation graph convolution.

[0039] Then, multi-relation graph convolution is used to iteratively combine neighbor information to supplement the representation of (learner or test question) nodes. On the basis of the multi-relation adjacency matrix, the interaction relationship between learners and test questions can be appropriately enhanced and embedded through multi-layer convolution operations, thereby enhancing the representation ability and learning effect of the model.

[0040] In some embodiments, a multi-relation adjacency matrix is ​​constructed based on an interaction matrix of questions that learners do not answer well and an interaction matrix of questions that learners answer correctly, including: constructing a sparse interaction matrix based on the interaction matrix of questions that learners do not answer well and the interaction matrix of questions that learners answer correctly; and transforming the sparse interaction matrix to obtain a multi-relation adjacency matrix.

[0041] Specifically, according to the learner's correct answer interaction matrix R p The interaction matrix R of the test questions that the learners cannot do well b Construct the total interaction matrix as R total =R p +αR b , where α is a hyperparameter used to avoid the graph convolution operation from increasing the embedding scale and affecting R b The weighting range is 0-1. However, since learners usually only interact with some test questions, the total interaction matrix R total is a sparse matrix, and here we need to total After converting them into edges in the graph and considering the bidirectional relationship between learners and test questions, the multi-relation adjacency matrix obtained after conversion is: The structure of the multi-relation adjacency matrix retains all possible interaction patterns between learners and test questions. In subsequent graph convolution operations, the structural information in the multi-relation adjacency matrix, such as the connection relationship and relationship type between nodes, can be used to learn and infer node representations.

[0042] In some embodiments, based on a multi-relation adjacency matrix, each node in a multi-relation interaction graph is enhanced using a preset multi-relation graph convolution to obtain an enhanced embedding representation corresponding to the node, including: obtaining an input vector of the node; according to the input vector, extracting an initial feature embedding vector of the node using a preset nonlinear co-embedding function; in a convolution layer of any layer of the multi-relation graph convolution, aggregating information of neighbor nodes of any node in the multi-relation interaction graph through the multi-relation adjacency matrix to obtain an updated embedding vector of any node; traversing each convolution layer, for each node, determining the average value of the updated embedding vectors corresponding to the nodes in all convolution layers to obtain an enhanced embedding representation corresponding to the node.

[0043] Specifically, in order to improve the representation of learner and question nodes, GCN iteratively aggregates the neighbor information of the node. In each iteration or aggregation, the information of the neighbor nodes is weighted and aggregated into the feature representation of the node (learner or question). The multi-relation adjacency matrix Madj defines the connection relationship between the learner and question nodes, including direct connections and high-order connections. At each layer of the graph convolution, the node (learner or question) aggregates the information of its neighbor nodes through the multi-relation adjacency matrix Madj and updates the embedded representation.

[0044] For example, see Figure 3 , first obtain the input vector x of the learner and the test question u and x i , x u It can be just a one-hot encoding of the learner ID, or it can flexibly add or remove some of the learner's personalized characteristics (such as learning style, knowledge base, interest preferences, and personal status, etc.) according to actual needs. i It is mainly composed of the test question ID (one-hot encoding) and the test question's characteristic attributes. The test question's characteristic attributes include knowledge points, difficulty level, previous answer records, and multimodal data (text, pictures, videos, etc.).

[0045] Next, we use two nonlinear co-embedding functions f U and f I , for the input vector x from the learner u And the input vector x of the test question i Extract the initial feature embedding vector z u and z i .

[0046] Among them, θ U and θ I is the parameter of the GCN nonlinear fully connected layer.

[0047] Then, for the node of question i and the node of learner u, after the kth iteration, the embedding of the question is updated by aggregating the neighbor information, and e i (k) Transform to get the updated embedding vector e i (k+1) And e u (k+1) Transform to get the updated embedding vector e u (k+1) , here e u (0) =z u , e i (0) =z i Finally, for each node, the average of its updated embedding vectors in all convolutional layers is calculated to obtain the enhanced embedding representation Z u and Z i .

[0048] Step S103: construct different sample pair interaction relationship representations according to the learner enhanced embedding representation and the test question enhanced embedding representation, learn the preferences of different learners by comparing the sample pair interaction relationship representations, and construct a learner comparison loss function.

[0049] Specifically, the enhanced embedding representations of learners and test questions are used to construct sample pairs. Each sample pair includes the representation of the interaction relationship between the learner and the test question. The preferences and differences between different learners are learned through the representation of the sample pair interaction relationship, so as to construct a learner contrast loss function. The goal of the learner contrast loss function is to push the enhanced embeddings of similar learners closer in the learner embedding space, and push the enhanced embeddings of dissimilar learners apart. Cosine similarity can be used to measure the similarity between the enhanced embedding representations of different sample pairs. For each learner-test question pair, the loss function can be defined as maximizing the similarity of similar learners and minimizing the similarity of dissimilar learners.

[0050] In some embodiments, different sample pair interaction relationship representations are constructed based on the learner enhanced embedding representation and the test question enhanced embedding representation, and the preferences between different learners are compared through the sample pair interaction relationship representations to construct a learner contrast loss function, including: learning the learner enhanced embedding representation and the test question enhanced embedding representation through the MLP layer to generate different sample pair interaction relationship representations; wherein the sample pair interaction relationship representation includes a positive sample pair interaction relationship representation, a fine-grained negative sample pair interaction relationship representation, and a coarse-grained negative sample pair interaction relationship representation; the positive sample pair interaction relationship representation is used to represent the answer situation of the same learner on the same test question, including poor test question and The interactive behavior of answering all the questions correctly; the fine-grained negative sample pair interactive relationship representation is used to characterize the answers of different learners on the same test question, including the interactive behavior of answering the test questions poorly; the coarse-grained negative sample pair interactive relationship representation is used to characterize the answers of different learners on different test questions, including the interactive behavior of answering the test questions poorly; according to the similarity between the positive sample pair interactive relationship representation and the fine-grained negative sample pair interactive relationship representation, a fine-grained loss function is constructed; according to the similarity between the positive sample pair interactive relationship representation and the coarse-grained negative sample pair relationship representation, a coarse-grained loss function is constructed; the fine-grained loss function and the coarse-grained loss function are weighted to obtain the learner contrast loss function.

[0051] In this implementation, see Figure 3 , a multi-layer perceptron (MLP) model is used to capture different interactive relationship representations, as follows: in, , , , , Learners , , The corresponding learner-enhanced embedding representation and test question i j 、i k The corresponding test question is enhanced with embedded representation.

[0052] The interaction relationship between positive samples is represented as , refers to the interactive behavior of the same learner on the same test question, including the answer to the question not done well and the answer to all the questions correctly, see Figure 3 The learner (user) perspective compares the pos in the learning module; the fine-grained negative sample pair interaction relationship is represented as , refers to the interactive behavior of different learners on the same test questions, including the responses to the questions that are not answered well, see Figure 3 The learner (user) perspective contrasts the neg_fine in the learning module; the coarse-grained negative sample pair interaction relationship is characterized as , refers to the responses of different learners on different test questions, including the interactive behaviors of those who do not do well on the test questions, see Figure 3 The learner (user) perspective compares the neg_coarse in the learning module.

[0053] Since the representation of the interaction relationship of fine-grained negative samples indicates that different learners have relatively different preferences for the same test question, when the data is sparse, the contrastive learning loss function based on the representation of the interaction relationship of positive samples and the representation of the interaction relationship of fine-grained negative samples is effective, that is, fine-grained contrastive learning based on the representation of the interaction relationship of positive samples and the representation of the interaction relationship of fine-grained negative samples is also the basis for learning "learners' unique behavioral preferences". To this end, the following fine-grained loss function is constructed to increase the preference differences of a single relationship (all correct or poor answers on the same test question) between different learners, while reducing the differences in the preference representations of multiple relationships (all correct or poor answers on the same test question) of the same learner: Among them, f(ξ1,ξ2,ξ3) is the pairwise distance function, ξ1,ξ2,ξ3 are different feature vectors, and σ(▪) is the s-type activation function, which is used to convert the distance into a probability form, so that the output of the f function is the probability of similarity. In addition, , represent the set of “do not do well” and “do all right” interaction behaviors, i.e., the corresponding samples. The multi-relation interaction preference representation is fine-grained In contrastive learning, in addition to sampling the same learner For the same test question j Representation of the interactive relationship between "all correct" and "poor" positive sample pairs In addition, another different learner was randomly sampled For the same test question j “Not good” at representing interaction relationships with fine-grained negative samples .

[0054] Since the coarse-grained negative samples represent the interaction relationship from different learners For different test questions (i j ,i k) belongs to a completely different interaction relationship and is quite different. Therefore, in order to better distinguish the interaction preferences of different learners, a coarse-grained comparative learning is performed based on the interaction relationship representation of positive samples and the interaction relationship representation of coarse-grained negative samples, and the following coarse-grained loss function is constructed: This will further increase the differences in preferences of different learners in “doing poorly” on different test questions.

[0055] Finally, in order to combine the contrast learning effects of fine-grained and coarse-grained learning, the fine-grained loss function And the coarse-grained loss function Weighted, we get the learner contrast loss function: Among them, β is a hyperparameter.

[0056] The comprehensive fine-grained and coarse-grained contrastive learning helps the model better understand the learner's personalized preferences, thereby improving the performance and accuracy of personalized recommendations.

[0057] Step S104: Based on the learner enhanced embedding representation, a text label representation and a test question representation are obtained by comparing the label information of the learning test questions with the learners who did not do well in the test questions, and a test question comparison loss function is constructed based on the text label representation and the test question representation.

[0058] Specifically, through contrastive learning, the label information of the test questions (such as knowledge points, difficulty, etc.) is converted into text label representation, and the learner representation is obtained for learners who do not do well in the test questions (such as answering questions incorrectly or not completing the questions). These representations reflect the learner's deficiencies or needs on specific test questions. Combining the text label representation and the test question representation, a test question contrast loss function is constructed. By minimizing the test question contrast loss function, the model learns to align the test question representation with the correct label representation, and at the same time distinguishes the representations of different test questions, ensuring that when recommending test questions, the specific content and learning objectives of the test questions can be taken into account, thereby improving the relevance and accuracy of the recommendation.

[0059] In some embodiments, based on the learner-enhanced embedding representation, a text label representation and a test question representation are obtained by comparing the label information of the learning test questions and the learners who did not do well in the test questions, and a test question comparison loss function is constructed based on the text label representation and the test question representation, including: extracting the label information of the test questions through a text encoder to obtain a text label representation; selecting the learner-enhanced embedding representation according to a preset selection rule to obtain an embedding representation of the learner who did not do well in the test questions; converting the embedding representation of the learner who did not do well in the test questions into a test question representation through a test question encoder; constructing a text label loss function and a test question loss function based on the similarity between the text label representation and the test question representation; averaging the text label loss function and the test question loss function to obtain a test question comparison loss function.

[0060] Specifically, to ensure that the labels are clearer and more meaningful in the context, the label l for each question (i) , for example, "trigonometric function" needs to be reconstructed into a more descriptive text, resulting in "test questions on trigonometric function". Here, the tokenizer tool is used to process the text tags. (i) And context description c. The role of Tokenizer is to decompose the text into semantic units, which may include word, subword or character level representation, so as to facilitate model understanding and processing. The attribute matrix obtained after conversion is: in, Next, a text encoder (such as a Transformer model) is used to encode these text descriptions to obtain each label l (i) The text label representation is: in, , N represents the total number of nodes, and D represents the dimension. Learners are sorted according to the order in which they complete the test questions. For each test question i j , select the last K learners who failed to answer the questions correctly after the answering order in the learner enhanced embedding representation. The behavior of these learners can better reflect the difficulty of the current test questions or the general difficulty of learners. Get a set of learners who can't do this question well [Z u1 ,Z u2 ,...,Z uK ], these sequences capture the individual characteristics of learners who do not do well on the test questions. If the number of learners is less than K, a specific padding vector unK is used to pad the sequence to ensure that the input sequence length is K. u1 ,Z u2 ,...,Z uK ] is used as the input of the test encoder to obtain the test representation: in, I didn't do well on the test. j The embedding of the kth learner (k=1, 2, ...K) is concatted, and the embeddings of all K learners who did not do well in the test questions are concatenated together as the input of the test question encoder, and the test question representation is obtained through Transformer transformation. .

[0061] Then, the relationship between the text label representation and the question representation is calculated Similarity, construct text label loss function And the test loss function : Among them, L represents the set of all text labels, and the similarity function Measured by the dot product, τ is a learnable temperature variable used to scale the logits of the model output layer and can be any real number in (0, +∞).

[0062] Finally, there is a symmetric loss between the text encoder and the question encoder, so it is necessary to average the text label loss function and the question loss function to obtain the question contrast loss function: It should also be noted here that in this embodiment, a soft classifier model (such as a convolutional neural network, a recurrent neural network, etc.) is used to predict the probability of test questions belonging to different categories. For each test question, the model will output the probability of belonging to each category, and then select the category with the highest probability as the predicted category. For example, in an English test question, there may be different categories such as grammar, vocabulary, and logic. The model may output probability values ​​such as 0.1, 0.2, and 0.7. These probability values ​​are converted into probability values ​​between 0 and 1 by the softmax function. The predicted category is the category that the model considers to be the most likely, which is used to compare with the true category, and adjust the model parameters according to the comparison results to reduce the error. The model uses a loss function To measure the difference between the predicted probability distribution and the true label, the model is encouraged to output a high probability corresponding to the true label, which can enhance the comparison and mutual interpretation between the test question label text features of contrastive learning and the test questions that learners cannot do well.

[0063] Step S105: construct a loss function for all questions answered correctly by the learner and a loss function for questions answered incorrectly by the learner based on the learner's enhanced embedded representation and the question's enhanced embedded representation.

[0064] In this embodiment, in order to enable the model to better understand the needs and preferences of learners in different situations, it is also necessary to construct corresponding functions separately for the interactions between learners answering all the questions correctly and learners answering the questions poorly.

[0065] In some embodiments, based on the learner enhanced embedding representation and the test question enhanced embedding representation, constructing a loss function for all the test questions that the learner does correctly and a loss function for the test questions that the learner does not do well, including: determining a score function for the test questions that the learner does not do well and a score function for all the test questions that the learner does correctly through a fully connected neural network based on the learner enhanced embedding representation and the test question enhanced embedding representation; using a binary cross entropy loss function to construct an initial learner's poorly done test question loss function and an initial learner's full correct test question loss function for the learner's poorly done test question score function and the learner's full correct test question score function respectively; using a mean square error The preset relative difficulty coefficient is optimized to obtain the relative difficulty coefficient loss function of the questions that the learner cannot do well and the relative difficulty coefficient loss function of the questions that the learner can do all correctly; wherein, the relative difficulty coefficient represents the learner's mastery of the knowledge points in the questions; according to the sum of the initial loss function of the questions that the learner can do all correctly and the relative difficulty coefficient loss function of the questions that the learner can do all correctly, the loss function of the questions that the learner can do all correctly is obtained; according to the sum of the initial loss function of the questions that the learner cannot do well and the relative difficulty coefficient loss function of the questions that the learner cannot do well, the loss function of the questions that the learner cannot do well is obtained.

[0066] In this implementation, in order to consider the more complex and possibly nonlinear interaction between the learner and the test questions, a fully connected layer is used to predict the score between the learner and the test questions. This method not only considers the linear relationship, but also captures more subtle and complex interactions. Specifically, based on the learner enhanced embedding representation and the test question enhanced embedding representation, the score prediction is performed by mapping the output of the fully connected layer to a score function within the probability range: in, Give points to learners who do not do well on the test questions. The score for learners who answer all the questions correctly is g b is the score function for the learner to do poorly on the test questions, g p The score function for learners who have answered all the questions correctly is an activation function such as the sigmoid function. The scores are high or low, and the weaknesses of learner u in test i are ranked, and then test i is recommended to learner u for practice according to the ranking results, so as to improve the learner's ability in a more targeted manner. The higher the score, the lower the learner's mastery of the test question. The test questions are sorted from high to low according to the scores and recommended to the corresponding learner u for test question practice.

[0067] In order to further optimize the representation of the interactive relationship between learners and test questions, the binary cross entropy loss function is used to construct the loss function: in, and They respectively represent the interactive sets of questions that the learners cannot answer well and the interactive sets of questions that the learners answer correctly, that is, the corresponding samples. and Represents the predicted interaction between questions that the learner did not do well and questions that the learner did well, which may include latent or missing data.

[0068] In this implementation, in order to more carefully capture the details of the learner's mastery of the test questions, it is necessary to define the relative difficulty coefficient d u,i , which is used to quantify the learner's mastery of a specific test question. u,i It is calculated by comparing the number of knowledge points that the learner answered incorrectly on the test with the total number of knowledge points on the test. If the learner answers more knowledge points incorrectly, the relative difficulty coefficient is higher, indicating that the learner needs more practice.

[0069] For the interaction of learners answering all questions correctly and the interaction of learners answering questions poorly, the corresponding relative difficulty coefficients are defined as follows: Among them, n i is the total number of knowledge points tested by question i, The number of knowledge points for which the learner made mistakes.

[0070] Then, for the defined relative difficulty coefficient, the mean square error (MSE) loss function is used to optimize the predicted relative difficulty coefficient. Relative difficulty coefficient to actual The difference between: Among them, this loss function only targets the existing interactions Optimize, *=p, b represent the interaction between learners answering all questions correctly and learners answering questions poorly, To use a custom scoring function Calculated prediction value, custom scoring function The activation function output of the fully connected layer can be used. That is, the relative difficulty coefficient loss function of the learner answering all the questions correctly, That is, the relative difficulty coefficient loss function of the test questions that the learner cannot do well.

[0071] Finally, the loss function for the learner to get all the correct questions is obtained according to the following formula: And the loss function for the learner to do poorly on the test questions : Step S106: Perform model training based on the learner comparison loss function, the test question comparison loss function, the learner's correct test question loss function, and the learner's poor test question loss function to obtain a target recommendation model.

[0072] In this embodiment, the total objective loss function of the model is Defined as: Among them, γ is a hyperparameter. During the model training process, the total target loss function Minimize, complete the model training, and obtain the target recommendation model.

[0073] In a second aspect, an embodiment of the present invention provides a test question recommendation method. Figure 4 A flowchart of a test question recommendation method provided by an embodiment of the present invention is shown in FIG. Figure 4 As shown, the method includes: Step S201, obtaining a target multi-relationship interaction graph; wherein the target multi-relationship interaction graph is constructed with target test questions and learners to be recommended as nodes, and with interaction matrices of target test questions that the learners to be recommended do not answer correctly and interaction matrices of target test questions that the learners to be recommended answer correctly as edges.

[0074] Step S202: input the target multi-relationship interaction graph into the target recommendation model obtained by the training method of the above-mentioned test question recommendation model for prediction, and obtain a target recommended learner list corresponding to the target test question.

[0075] Step S203: recommend the target test questions to the learners in the target recommended learner list.

[0076] In this embodiment, the obtained target multi-relationship interaction graph is input into the trained target recommendation model for prediction to generate a target recommendation learner list. This list is generated based on the learner's answer requirements for the target test questions predicted by the model, and is recommended to the Top-N learners based on the score ranking, providing more accurate and personalized test question recommendations, ensuring that suitable learners can receive test questions that suit their needs and abilities.

[0077] In order to illustrate the technical effects achieved by the embodiments of the present invention, comparative algorithm experiments, ablation studies, and hyperparameter debugging were conducted on two public platform data sets in analogous scenarios to verify the performance and effect of the target recommendation model provided by the present invention. In the experiment, Adam was used as the optimizer to initialize the model parameters, and each model was trained from scratch, including the comparative algorithm, while adjusting the hyperparameter settings of each model.

[0078] (1) In the comparative algorithm experiment phase, the target recommendation model of the present invention was compared with three baseline models (Random, Popularity, and pureMF) and three state-of-the-art related models (LightGC, MultiRec, and Multi-VAE). The results show that the target recommendation model of the present invention improved the performance by 34.8% to 65.6% and 2.2% to 29.1% on the two datasets, respectively, outperforming almost all baseline models and state-of-the-art related models, especially on relatively sparse datasets.

[0079] (2) For ablation research, the multi-relation graph convolution module corresponding to the target recommendation model of the present invention (corresponding to Figure 3 MRGC in the learner perspective comparison learning module (corresponding to Figure 3 User-CL in the question perspective comparison learning module (corresponding to Figure 3 Four different models were designed based on the ILCL in the GCN: MR (removing the GCN core module), MRGC, MRGCw / ILCL and MRGCw / User-CL. The research results show that multi-relationship interaction behaviors are successfully modeled through MRGC, and User-CL and ILCL significantly improve the performance of the model on the two datasets. Further analysis shows that the performance of MRGCw / ILCL is slightly lower than that of MRGC and may cause overfitting, while MRGCw / User-CL significantly improves the performance. Combining ILCL with User-CL can significantly enhance the representation learning effect and solve the overfitting problem, thereby improving the overall performance of the target recommendation model of the present invention. The representation learning performance on the two datasets is improved by 46.8% and 12.1%, respectively.

[0080] (3) In terms of hyperparameter debugging, D=32 was set, and the three hyperparameters of the target recommendation model of the present invention were systematically debugged. The experimental results show that when α=0.01, the target recommendation model shows significant performance on both datasets, indicating that poor interaction has a certain impact on the propagation of collaborative signals between learners and test questions, although it is smaller than the impact of getting all the questions right. In addition, on one dataset, the performance is similar when β=1.0 and 0.5, indicating that the learning effects of fine-grained and coarse-grained comparisons are similar, while on another dataset, the performance is best when β=1.0 and 0.5, respectively. On the sparse dataset, the performance is better when γ=30, while on the other dataset, the performance is relatively better when γ=10. Overall, by debugging the hyperparameters, relatively excellent performance results are obtained.

[0081] In summary, the target recommendation model of the present invention shows significant performance advantages and effects in the recommendation system, especially in processing multi-relation interactions and sparse data sets.

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

[0083] In the third aspect, an embodiment of the present invention provides a training system for a test question recommendation model, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the terms "module", "unit", "subunit", etc. can implement a combination of software and / or hardware for a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, the implementation in hardware, or a combination of software and hardware, is also possible and conceivable.

[0084] Figure 5 A block diagram of a training system for a test question recommendation model provided by an embodiment of the present invention, such as Figure 5 As shown, the system includes: The interaction graph acquisition module 301 is used to acquire a multi-relationship interaction graph; the multi-relationship interaction graph is constructed with test questions and learners as nodes, and with an interaction matrix of test questions that learners do not answer well and an interaction matrix of test questions that learners answer correctly as edges; the interaction matrix of test questions that learners do not answer well represents at least one knowledge point corresponding to the test questions that the learners answer incorrectly, and the interaction matrix of test questions that learners answer correctly represents all knowledge points corresponding to the test questions that the learners answer correctly.

[0085] The node enhancement module 302 is used to enhance each of the nodes in the multi-relationship interaction graph using a preset multi-relationship graph convolution to obtain an enhanced embedded representation corresponding to the node; wherein the enhanced embedded representation includes a learner enhanced embedded representation and a test question enhanced embedded representation.

[0086] The learner comparison module 303 is used to construct different sample pair interaction relationship representations according to the learner enhanced embedded representation and the question enhanced embedded representation, learn the preferences between different learners by comparing the sample pair interaction relationship representations, and construct a learner comparison loss function.

[0087] The test question comparison module 304 is used to enhance the embedding representation according to the learner, obtain text label representation and test question representation by comparing the label information of the learning test questions and the learner who did not do well in the test questions, and construct a test question comparison loss function according to the text label representation and the test question representation.

[0088] The loss function construction module 305 is used to construct a loss function for all the questions answered correctly by the learner and a loss function for the questions answered poorly by the learner based on the learner's enhanced embedded representation and the question's enhanced embedded representation.

[0089] The model training module 306 is used to perform model training according to the learner comparison loss function, the test question comparison loss function, the learner's correct test question loss function and the learner's poor test question loss function to obtain a target recommendation model.

[0090] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0091] In a fourth aspect, an embodiment of the present invention provides 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 the above-mentioned training method of the test question recommendation model or the above-mentioned test question recommendation method when executing the computer program.

[0092] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0093] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0094] In a fifth aspect, in combination with the training method of the test question recommendation model in the above embodiment or the test question recommendation method described above, the embodiment of the present invention can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by the processor, the training method of any test question recommendation model in the above embodiment or the test question recommendation method described above is implemented.

[0095] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the training method of the test question recommendation model or the test question recommendation method described above is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0096] In one embodiment, Figure 6 A schematic diagram of the internal structure of an electronic device provided by an embodiment of the present invention, such as Figure 6 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 6 As shown. The electronic device includes a processor, a network interface, an internal memory and a non-volatile memory connected through an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used to provide computing and control capabilities, the network interface is used to communicate with an external terminal through a network connection, the internal memory is used to provide an environment for the operation of the operating system and the computer program, the computer program is executed by the processor to implement the training method of the test question recommendation model or the test question recommendation method described above, and the database is used to store data.

[0097] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present invention, and does not constitute a limitation on the electronic device to which the scheme of the present invention is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0098] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0099] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0100] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention. These improvements and substitutions should also be regarded as the scope of protection of the present invention.

Claims

1. A training method for a test question recommendation model, characterized in that: The training method comprises: Obtain a multi-relationship interaction graph; the multi-relationship interaction graph is constructed with test questions and learners as nodes, and with an interaction matrix of test questions that learners do not answer well and an interaction matrix of test questions that learners answer correctly as edges; the interaction matrix of test questions that learners do not answer well represents at least one knowledge point corresponding to the test questions that learners answer incorrectly, and the interaction matrix of test questions that learners answer correctly represents all knowledge points corresponding to the test questions that learners answer correctly; Using a preset multi-relation graph convolution to enhance each of the nodes in the multi-relation interaction graph, to obtain an enhanced embedded representation corresponding to the node; wherein the enhanced embedded representation includes a learner enhanced embedded representation and a test question enhanced embedded representation; constructing different sample pair interaction relationship representations according to the learner enhanced embedding representation and the test question enhanced embedding representation, comparing and learning preferences between different learners through the sample pair interaction relationship representations, and constructing a learner comparison loss function; According to the learner enhanced embedding representation, a text label representation and a test question representation are obtained by comparing the label information of the learning test questions with the learner who did not do well in the test questions, and a test question contrast loss function is constructed according to the text label representation and the test question representation; According to the learner enhanced embedding representation and the test question enhanced embedding representation, constructing a loss function for all test questions answered correctly by the learner and a loss function for test questions answered poorly by the learner; Model training is performed according to the learner comparison loss function, the test question comparison loss function, the learner's correct test question loss function and the learner's poor test question loss function to obtain a target recommendation model.

2. The training method according to claim 1, characterized in that: Before enhancing each of the nodes in the multi-relationship interaction graph by using a preset multi-relationship graph convolution to obtain an enhanced embedding representation corresponding to the node, the training method further includes: Constructing a multi-relation adjacency matrix based on the interaction matrix of test questions that the learner did not answer well and the interaction matrix of test questions that the learner answered correctly; Based on the multi-relation adjacency matrix, each of the nodes in the multi-relation interaction graph is enhanced using a preset multi-relation graph convolution to obtain an enhanced embedding representation corresponding to the node.

3. The training method according to claim 2, characterized in that: The constructing of a multi-relation adjacency matrix based on the interaction matrix of test questions that the learner did not answer well and the interaction matrix of test questions that the learner answered correctly includes: constructing a sparse interaction matrix according to the interaction matrix of test questions that the learner cannot answer correctly and the interaction matrix of test questions that the learner answers correctly; The sparse interaction matrix is ​​transformed to obtain the multi-relation adjacency matrix.

4. The training method according to claim 2, characterized in that: The method of enhancing each of the nodes in the multi-relationship interaction graph based on the multi-relationship adjacency matrix by using a preset multi-relationship graph convolution to obtain an enhanced embedding representation corresponding to the node includes: Obtaining an input vector of the node; According to the input vector, a preset nonlinear co-embedding function is used to extract an initial feature embedding vector of the node; In a convolution layer of any layer of the multi-relation graph convolution, information of neighbor nodes of any node in the multi-relation interaction graph is aggregated through the multi-relation adjacency matrix to obtain an updated embedding vector of any node; Traverse each of the convolutional layers, and for each of the nodes, determine the average value of the updated embedding vectors corresponding to the nodes in all the convolutional layers to obtain the enhanced embedding representation corresponding to the node.

5. The training method according to claim 1, characterized in that: The step of constructing different sample pair interaction relationship representations according to the learner enhanced embedding representation and the test question enhanced embedding representation, comparing and learning preferences between different learners through the sample pair interaction relationship representations, and constructing a learner comparison loss function includes: The learner enhanced embedding representation and the test question enhanced embedding representation are learned through the MLP layer to generate different sample pair interaction relationship representations; wherein the sample pair interaction relationship representations include positive sample pair interaction relationship representations, fine-grained negative sample pair interaction relationship representations and coarse-grained negative sample pair interaction relationship representations; the positive sample pair interaction relationship representations are used to represent the same learner's answer situation on the same test question, including the interactive behavior of not answering the test question well and answering all the test questions correctly; the fine-grained negative sample pair interaction relationship representations are used to represent the answer situation of different learners on the same test question, including the interactive behavior of not answering the test question well; the coarse-grained negative sample pair interaction relationship representations are used to represent the answer situation of different learners on different test questions, including the interactive behavior of not answering the test question well; Constructing a fine-grained loss function according to the similarity between the positive sample pair interaction relationship representation and the fine-grained negative sample pair interaction relationship representation; Constructing a coarse-grained loss function according to the similarity between the positive sample pair interaction relationship representation and the coarse-grained negative sample pair relationship representation; The fine-grained loss function and the coarse-grained loss function are weighted to obtain the learner contrast loss function.

6. The training method according to claim 1, characterized in that: The method of enhancing the embedding representation according to the learner, obtaining a text label representation and a test question representation by comparing the label information of the learning test question and the learner who did not do well in the test question, and constructing a test question contrast loss function according to the text label representation and the test question representation, includes: Extracting label information of the test question through a text encoder to obtain a text label representation; The learner enhanced embedded representation is selected according to a preset selection rule to obtain the learner embedded representation who did not do well in the test question; The embedding representation of the learner who failed to answer the test question is converted into a test question representation by a test question encoder; Constructing a text label loss function and a test question loss function according to the similarity between the text label representation and the test question representation; The text label loss function and the test question loss function are averaged to obtain the test question comparison loss function.

7. The training method according to claim 1, characterized in that: The step of constructing a loss function for all correct questions and a loss function for questions that the learner fails to answer correctly based on the learner enhanced embedding representation and the question enhanced embedding representation includes: Determine, by a fully connected neural network, a score function for test questions that the learner cannot answer well and a score function for test questions that the learner answers correctly according to the learner enhanced embedded representation and the test question enhanced embedded representation; Using a binary cross entropy loss function to construct a loss function for the initial learner's poorly done test questions and a loss function for the initial learner's fully correct test questions respectively for the learner's poorly done test question score function and the learner's fully correct test question score function; The preset relative difficulty coefficient is optimized using mean square error to obtain a relative difficulty coefficient loss function of a test question that the learner cannot answer well and a relative difficulty coefficient loss function of a test question that the learner answers correctly; wherein the relative difficulty coefficient represents the learner's mastery of the knowledge points in the test question; The loss function for the learner to get all the questions right is obtained by summing the loss function for the initial learner to get all the questions right and the loss function for the relative difficulty coefficient of the questions that the learner gets all the questions right; the loss function for the learner to get the questions wrong is obtained by summing the loss function for the initial learner to get the questions right and the loss function for the relative difficulty coefficient of the questions that the learner gets wrong.

8. A method for recommending test questions, characterized in that: The recommended methods include: Obtain a target multi-relationship interaction graph; wherein the target multi-relationship interaction graph is constructed with target test questions and learners to be recommended as nodes, and with interaction matrices of target test questions that the learners to be recommended do not do well and interaction matrices of target test questions that the learners to be recommended do all right as edges; Inputting the target multi-relationship interaction graph into the target recommendation model obtained by the training method of the test question recommendation model according to any one of claims 1 to 7 for prediction, and obtaining a target recommended learner list corresponding to the target test question; The target test question is recommended to the learners in the target recommended learner list.

9. A training system for a test question recommendation model, characterized in that: The training system comprises: An interaction graph acquisition module is used to acquire a multi-relation interaction graph; the multi-relation interaction graph is constructed with test questions and learners as nodes, and with an interaction matrix of test questions that learners do not answer well and an interaction matrix of test questions that learners answer correctly as edges; the interaction matrix of test questions that learners do not answer well represents at least one knowledge point corresponding to the test questions that learners answer incorrectly, and the interaction matrix of test questions that learners answer correctly represents all knowledge points corresponding to the test questions that learners answer correctly; A node enhancement module, used to enhance each of the nodes in the multi-relationship interaction graph using a preset multi-relationship graph convolution to obtain an enhanced embedded representation corresponding to the node; wherein the enhanced embedded representation includes a learner enhanced embedded representation and a test question enhanced embedded representation; A learner comparison module, used to construct different sample pair interaction relationship representations according to the learner enhanced embedding representation and the test question enhanced embedding representation, compare and learn the preferences between different learners through the sample pair interaction relationship representations, and construct a learner comparison loss function; A test question comparison module is used to enhance the embedding representation according to the learner, obtain a text label representation and a test question representation by comparing the label information of the learning test questions and the learner who did not do well in the test questions, and construct a test question comparison loss function according to the text label representation and the test question representation; A loss function construction module, used to construct a loss function for all correct questions and a loss function for questions that the learner cannot answer correctly based on the learner enhanced embedding representation and the question enhanced embedding representation; The model training module is used to perform model training according to the learner comparison loss function, the test question comparison loss function, the learner's correct test question loss function and the learner's poor test question loss function to obtain a target recommendation model.

10. An electronic device, characterized in that: include Memory, processor, and A computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the training method for the test question recommendation model as described in any one of claims 1 to 7 or the test question recommendation method as described in claim 8 is implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the training method of the test question recommendation model according to any one of claims 1 to 7 or the test question recommendation method according to claim 8.

Citation Information

Patent Citations

  • A personalized test recommendation method based on user learning behavior

    CN109509126A

  • Exercise recommendation method and device, electronic equipment and storage medium

    CN115080724A

  • Recommendation method and system based on multi-level comparative learning and multi-modal knowledge graph

    CN116091152A

  • Multi-task information enhancement test question recommendation method based on video understanding

    CN118296243A

  • Method and Device for Providing Learning Service by Using Digital Studying Material

    KR102524911B1

Cited By

  • Multi-relational graph comparison enhanced high-value patent identification method and system

    CN119691170A