Personalized course recommendation method and system based on multi-dimensional mapping relation

By using a multi-dimensional mapping relational neural network in the course recommendation system, combined with the graph attention mechanism and the recurrent neural network, it captures the structure and chronological characteristics of students' course selection, solves the problem of ignoring the course knowledge system in the existing technology, and achieves a more accurate Personalized course recommendations.

CN118864047APending Publication Date: 2024-10-29SHAANXI NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410861478.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing course recommendation systems are mainly based on students' personal preferences and historical learning behaviors, ignoring the impact of the course's own knowledge system on course selection, resulting in inaccurate recommendation results.

Method used

Using a neural network method based on multi-dimensional mapping relationships, by capturing the implicit mapping relationships in the structure and time sequence of students' course selection, combined with the graph attention mechanism and recurrent neural network, a mapping relationship capture module is designed to capture the course structure and student course selection sequence information. , generate personalized course recommendations.

Benefits of technology

By comprehensively considering the structural characteristics and chronological characteristics of students' course selection, the course structure information and the student's course selection sequence information are captured, which improves the accuracy of course recommendation and solves the problems of lack of comprehensiveness and hidden mapping relationships in the existing technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864047A_ABST
    Figure CN118864047A_ABST
Patent Text Reader

Abstract

The invention provides a personalized course recommendation method and system based on a multi-dimensional mapping relation, and the method comprises the steps: taking a course set C as a mapping relation neural network input; the selection probability # imgabs0 # of students for all courses in the course set C is obtained through processing of the mapping relation neural network; the mapping relation neural network comprises an embedded layer, a graph attention mechanism layer, an information aggregation layer, a mapping relation capture module, a pooling layer and a normalization layer which are arranged in sequence; the mapping relation capturing module comprises a loop structure and a loop body, wherein the loop body is formed by connecting a single GRU layer, an attention mechanism layer and an information aggregation layer in series; sorting the selection probability # imgabs1 #, and selecting the course corresponding to the maximum probability value as a recommended course; the method comprises the following steps: capturing features of student course selection in spatial structure and time sequence, and mapping the two features into predicted values of student personalized course selection; the sequence relation of the courses selected by the students is considered in the time dimension, and the correlation between the courses selected by the students is considered in the space dimension.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular relates to a personalized course recommendation method and system based on multi-dimensional mapping relationships. Background Art

[0002] With the continuous development of the Internet, various online learning platforms have emerged one after another, and a large amount of learning resources involving various majors and directions have been accumulated on these online learning platforms. Taking Xuetang Online as an example, the online courses and learning resources provided by Xuetang Online cover multiple disciplines, including but not limited to computer science, humanities and social sciences, business management, natural sciences, etc. However, faced with such a variety of learning resources, it will be difficult for students to choose courses that meet their future development needs, which will lead to a waste of students' learning time and learning resources. Therefore, personalized course recommendations based on students' development needs are very important.

[0003] The current course recommendation system mainly recommends personalized courses based on students' personal preferences and historical learning behaviors. Specifically, these course recommendation systems make personalized course recommendations by capturing students' course selection behaviors and finding implicit connections in the order of courses. This type of course recommendation system focuses too much on students' learning habits and ignores the impact of the course's own knowledge system on students' course selection. Summary of the invention

[0004] In order to solve the problems existing in the prior art, the present invention provides a personalized course recommendation method based on multi-dimensional mapping relationships. Starting from the knowledge system of the course itself, a neural network that captures the implicit mapping relationship between students' course selection structure and time sequence is proposed, and a method for personalized course recommendation based on the mapping relationship neural network is proposed.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is: a personalized course recommendation method based on multi-dimensional mapping relationship, comprising the following steps:

[0006] The course set C is used as the input of the mapping relation neural network. After being processed by the mapping relation neural network, the probability of students choosing all courses in the course set C is obtained.

[0007] The mapping relationship neural network includes an embedding layer, a graph attention mechanism layer, an information aggregation layer, a mapping relationship capture module, a pooling layer, and a normalization layer connected in sequence; wherein the mapping relationship capture module includes a loop structure and a loop body, wherein the loop body includes a single GRU layer, an attention mechanism layer, and an information aggregation layer connected in series;

[0008] The course set C enters the embedding layer to obtain the course feature matrix H 0, the course feature matrix H 0 , Course Structure Chart G course Input graph attention module to get attention score matrix Attention course , attention score matrix Attention course and the course feature matrix H 0 Input the information aggregation layer to obtain the new course feature matrix H′, where Indicates course c v After aggregating the features of courses of the same category, the new feature vector is obtained. The new course feature matrix H is input into the mapping relationship capture module to obtain the mapping relationship representation vector of a certain student; the mapping relationship representation vector of the student is input into the pooling layer to obtain the selection probability of the student for all courses in the course set C.

[0009]

[0010] in, Indicates student l i Select the vth course c v The probability of , V represents the total number of courses;

[0011] The probability of selection Sort and select the course with the largest probability value as the recommended course.

[0012] Furthermore, the mapping relationship neural network training includes the following steps:

[0013] Get the course category set, build a course structure diagram according to the course category, and build the adjacency matrix A of the course structure diagram course ;

[0014] Get the student course selection sequence and construct the student course selection sequence graph G based on the student course selection sequence S student , construct a sequence diagram of a student's course selection The adjacency matrix of

[0015] Construct a mapping relationship neural network and loss function, and combine it with the adjacency matrix of the student course selection sequence graph Build the map capture module;

[0016] The course feature matrix H 0 , Course Structure Chart G course And the adjacency matrix A of the course structure graph course Input graph attention module, in the adjacency matrix A of the course structure graph course Based on this, we get the attention score matrix Attention course ;

[0017] Attention score matrix course and the course feature matrix H 0 Input the information aggregation layer to obtain the new course feature matrix H. The new course feature matrix H is input into the mapping relationship capture module to obtain student l i The mapping relationship represents the vector

[0018] The students i The mapping relationship represents the vector Input to the pooling layer to get the student l i The selection probability of all courses in the course set C

[0019] During training, the training set is divided into multiple batches according to the set batch size. In each training round, the loss of the set training data in each batch is averaged and then back-propagated to update the parameters, and training is carried out until the loss function converges.

[0020] Furthermore, combined with the adjacency matrix of the student course selection sequence graph The construction method of the mapping capture module is as follows:

[0021] According to students i Course selection sequence The length of the loop structure determines the number of loops S. At the beginning of the loop, the student l i Course selection sequence And the course feature matrix H' extracts the corresponding course feature vector to obtain student l i The course selection feature matrix

[0022]

[0023] in, represents the new feature vector of the student's course selection, J represents the number of unique courses selected by the student, and d represents the vector size of the course feature matrix;

[0024] According to the course selection sequence The first course in the feature matrix Select the corresponding feature vector Will Input a single GRU layer and get the hidden state vector state1 of the first cycle:

[0025]

[0026] Among them, state0 represents the initial hidden state vector, and the initial value is customized;

[0027] The hidden state vector state1 and the adjacency matrix of the student course selection sequence graph and the feature matrix Input the attention mechanism layer to get the attention score vector

[0028]

[0029]

[0030] in, Represents a vector of length J, each element in the vector represents the attention score of the jth course, ⊙ represents the dot product of the vector, and J represents the number of non-repeated courses selected by the student; the hidden state state1 and the attention score vector Input information aggregation layer to get the mapping relationship representation vector of the current cycle

[0031]

[0032] Among them, || represents vector connection, and the mapping relationship of the current loop is represented by vector Input it into the single GRU layer of the next cycle to get the hidden state state2 of the second cycle:

[0033]

[0034] Continue looping until the Sth loop, and get student l i The final mapping relationship represents the vector

[0035] Further, construct a student course selection sequence diagram The adjacency matrix of as follows:

[0036]

[0037]

[0038] Among them, J represents the number of unique courses selected by students, a kj ′ represents student l i Have you chosen the kth course and the jth course successively? If yes, then a kj '=1, otherwise a kj ′=0.

[0039] Furthermore, the adjacency matrix A of the course structure graph course The construction method is as follows:

[0040] A course=(a ij ) V×V

[0041]

[0042] Among them, V×V represents the size of the adjacency matrix, a ij Indicates whether the i-th course and the j-th course belong to the same category z n , if they belong to the same category z n , then a ij =1, otherwise a ij =0.

[0043] Furthermore, the loss function of the mapping relationship neural network training is:

[0044]

[0045] Among them, y ij represents the i-th student l i Select the jth course c j The true value of (0 or 1), represents the i-th student l i Select the jth course c j The predicted probability of , M represents the total number of courses, and N represents the total number of students.

[0046] Furthermore, when the mapping relationship neural network is trained, the course feature matrix H 0 , Course Structure Chart G course And the adjacency matrix A of the course structure graph course Input graph attention module, in the adjacency matrix A of the course structure graph course Based on this, we get the attention score matrix Attention course , attention score matrix Attention course and the course feature matrix H 0 Input the information aggregation layer to obtain the new course feature matrix H', and the new course feature matrix H' is input into the mapping relationship capture module to obtain student l i The mapping relationship represents the vector The students i The mapping relationship represents the vector Input to the pooling layer to get the student l i The selection probability of all courses in the course set C

[0047] With the same concept as the above method, a personalized course recommendation system based on multi-dimensional mapping relationship is provided, including a data acquisition module, a model reasoning module and a ranking recommendation module;

[0048] The data acquisition module is used to obtain the course set C;

[0049] The model reasoning module is used to map the input of the relational neural network and obtain the probability of students choosing all courses in the course set C after processing the relational neural network. Specifically, the mapping relationship neural network includes an embedding layer, a graph attention mechanism layer, an information aggregation layer, a mapping relationship capture module, a pooling layer, and a normalization layer connected in sequence; wherein the mapping relationship capture module includes a loop structure and a loop body, wherein the loop body: a single GRU layer, an attention mechanism layer, and an information aggregation layer are connected in series;

[0050] The course set C enters the embedding layer to obtain the course feature matrix H 0 , the course feature matrix H 0 , Course Structure Chart G course And the adjacency matrix A of the course structure graph course Input graph attention module, in the adjacency matrix A of the course structure graph course Based on this, we get the attention score matrix Attention course , attention score matrix Attention course and the course feature matrix H 0 Input the information aggregation layer to obtain the new course feature matrix H', where Indicates course c v After aggregating the features of courses of the same category, the new feature vector is obtained. The new course feature matrix H' is input into the mapping relationship capture module to obtain the mapping relationship representation vector of a certain student; the mapping relationship representation vector of the student is input into the pooling layer to obtain the selection probability of the student for all courses in the course set C.

[0051]

[0052] in, Indicates student l i Select the vth course c v The probability of , V represents the total number of courses;

[0053] The sorting recommendation module is used to sort the selection probability Sort and select the course with the largest probability value as the recommended course.

[0054] The present invention can also provide a computer device, including a processor and a memory, the memory is used to store a computer executable program, the processor reads the computer executable program from the memory and executes it, and when the processor executes the computer executable program, it can implement the personalized course recommendation method based on multi-dimensional mapping relationship described in the present invention.

[0055] A computer-readable storage medium is also provided, in which a computer program is stored. When the computer program is executed by a processor, the personalized course recommendation method based on multi-dimensional mapping relationship described in the present invention can be implemented.

[0056] Compared with the prior art, the present invention has at least the following beneficial effects: the present invention comprehensively considers the structural characteristics and time sequence characteristics of students' previous course selections, and designs a mapping relationship capture module based on the characteristics of the graph attention mechanism and the recurrent neural network. The mapping relationship capture module can combine the structural characteristics and the sequence characteristics of students' course selections, and capture the implicit mapping relationship between the two characteristics to obtain a mapping relationship vector, and then through the vector, the course structure information and the student course selection sequence information can be added in the subsequent prediction process. The aggregation of these two additional information can make the recommended personalized courses more accurate; it solves the problem that the prior art either only uses the graph attention mechanism to capture the structural information of the course system, or only uses the recurrent neural network to capture the learning sequence information, both lack comprehensiveness, and do not pay attention to the hidden mapping relationship between the course structure characteristics and the time sequence characteristics. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 This is a flowchart of Example 1 of the present invention.

[0058] Figure 2 It is a structural diagram of the mapping relational neural network.

[0059] Figure 3 yes Figure 2 Schematic diagram of the structure of the mapping relationship capture module. DETAILED DESCRIPTION

[0060] refer to Figure 1 and Figure 2 The present invention provides a personalized course recommendation method based on a multi-dimensional mapping relationship, comprising the following steps:

[0061] (1) Selecting a dataset

[0062] The dataset comes from XuetangX, one of the largest MOOC platforms in China. The dataset includes 82,535 students, 1,302 courses, 23 course categories, and 458,454 student learning records. The student set L is defined as follows:

[0063] L={l1,l2,...,l i}

[0064] Among them, l irepresents the i-th student, 1≤i≤I, I represents the total number of students;

[0065] The course set C is defined as follows:

[0066] C={c1,c2,...,c v}

[0067] Among them, c v represents the vth course, 1≤v≤V, V represents the total number of courses;

[0068] The course category set Z is defined as follows:

[0069] Z={z1,z2,...,z n}

[0070] Among them, Z n represents the nth course category, 1≤n≤N, N represents the total number of course categories;

[0071] The learning record set Q is defined as follows:

[0072] Q={Q1,Q2,...,Q k}

[0073] Q k =(l i ,c v ,z n ,t k )

[0074] Among them, Q k represents the kth learning record, 1≤k≤K, K represents the total number of learning records, and learning record Q k By student i 、Students’ course selection v 、The category of the student's course selection n And the course selection time t constitutes;

[0075] (2) Dataset Division

[0076] The data set is divided into training set Q according to the ratio of 8:2. train , test set Q test

[0077] (3) Constructing a course structure diagram

[0078] 1) Determine the course category set

[0079] According to the vth course c v Category n Divide the course set C to obtain the course category set X. The course set X is defined as follows:

[0080]

[0081]

[0082] Among them, z n represents the course category, n represents the number of course categories, Indicates that they belong to the same category z n All courses x , x means it belongs to category z n The number of courses;

[0083] 2) Construct a course structure diagram according to course categories

[0084] According to the course category set X, a course structure diagram is constructed, and the course structure diagram G course The definition is as follows:

[0085] G course =(V course ,E course )

[0086] V course ={c1,c2,...,c v}

[0087] and Among them, c v ∈V course Represents the set of course nodes, E course represents a set of undirected edges;

[0088] 3) Construct adjacency matrix

[0089] Construct the adjacency matrix A of the course structure graph course Used to construct the attention matrix in the graph attention module, the adjacency matrix A of the course structure graph course The construction method is as follows:

[0090] A course =(a ij ) VxV

[0091]

[0092] Among them, V×V represents the size of the adjacency matrix, a ij Indicates whether the i-th course and the j-th course belong to the same category z n , if they belong to the same category z n , then a ij =1, otherwise a ij =0;

[0093] (4) Constructing a student course selection sequence diagram

[0094] 1) Determine the course selection sequence for students

[0095] Divide the learning records Q by students, sort them according to the course selection time t, and select course c v Construct a set S of student course selection sequences, which is defined as follows:

[0096]

[0097]

[0098] in, Indicates student l i The course selection sequence, i represents the number of students, t s Indicates the course selection time, c s-1 ,c s Indicates the order of course selection. The same course c s Can be repeated multiple times;

[0099] 2) Construct a student course selection sequence diagram

[0100] Construct the student course selection sequence graph G according to the student course selection sequence S student , student course selection sequence diagram G student The definition is as follows:

[0101]

[0102]

[0103]

[0104]

[0105] in, Represents the set of student course selection nodes and the sequence of student course selection different, Course c is not allowed s repeat, represents the set of directed edges, t s Indicates the course selection time;

[0106] 3) Construct adjacency matrix

[0107] Constructing a student course selection sequence diagram The adjacency matrix of Used to construct the attention vector in the mapping relationship capture module and the adjacency matrix of the student course selection sequence graph as follows:

[0108]

[0109]

[0110] Among them, J represents the number of unique courses selected by students, a kj ' indicates student l i Have you chosen the kth course and the jth course successively? If yes, then a kj '=1, otherwise a kj '=0.

[0111] (5) Constructing a mapping relationship neural network

[0112] The mapping relationship neural network is composed of an embedding layer, a graph attention mechanism layer, an information aggregation layer, a mapping relationship capture module, a pooling layer, and a normalization layer.

[0113] The output end of the embedding layer is connected to the input end of the graph attention mechanism layer, the output end of the graph attention module is connected to the input end of the information aggregation layer, the output end of the information aggregation layer is connected to the input end of the mapping relationship capture module, the output end of the mapping relationship capture module is connected to the input end of the pooling layer, and the output end of the pooling layer is connected to the input end of the normalization layer; wherein the mapping relationship capture module is composed of a loop structure and a loop body, wherein the loop body is composed of a single GRU layer, an attention mechanism layer and an information aggregation layer connected in series.

[0114] (6) Training the mapping relationship neural network

[0115] 1) Construct loss function

[0116] The loss function is constructed as follows:

[0117]

[0118] Among them, y ij represents the i-th student l i Select the jth course c j The true value of (0 or 1), represents the i-th student l i Select the jth course c j The predicted probability of , M represents the total number of courses, and N represents the total number of students.

[0119] 2) Training the mapping relationship neural network

[0120] Input the course set C into the embedding layer to obtain the course feature matrix H 0 :

[0121]

[0122] in, Indicates course cv The corresponding eigenvector, V represents the total number of non-repeated courses, and d represents the vector size.

[0123] The course feature matrix H 0 , Course Structure Chart G course And the adjacency matrix A of the course structure graph course Input graph attention module, in the adjacency matrix A of the course structure graph course Based on this, we get the attention score matrix Attention course :

[0124] Attention course =(α ij ) V×V

[0125] Among them, α ij Indicates course c i and c j , V represents the total number of non-repeated courses.

[0126] Attention score α ij Calculated as follows:

[0127]

[0128] in, are all learnable network weight parameters, N i Represents and Course C i A collection of adjacent courses belonging to the same category.

[0129] Attention score matrix course and the course feature matrix H 0 Input the information aggregation layer to obtain the new course feature matrix H':

[0130]

[0131] in, Indicates course c v The new feature vector obtained by aggregating the features of courses in the same category.

[0132] The new course feature matrix H' is input into the mapping relationship capture module to obtain student l i The mapping relationship represents the vector

[0133] The students i The mapping relationship represents the vector Input to the pooling layer to get the student l i The selection probability of all courses in the course set C

[0134]

[0135] in, Indicates student l i Select the vth course c v The probability size, V represents the total number of courses.

[0136] During training, the training set is first divided into multiple batches according to a batch size of 100. In each training round, the losses of the 100 training data in each batch are averaged and then back-propagated to update the parameters. The learning rate η is automatically adjusted according to the following formula:

[0137]

[0138] Where η0 represents the initial learning rate, which is generally 0.001, and epoch represents the training round, which is an integer between [1,100], and the training is performed until the loss function converges;

[0139] (7) Test the mapping relationship neural network

[0140] Using the test set Q test Test the mapping relationship neural network. The test set is not batched or randomized, and the prediction results are finally obtained.

[0141] (8) Evaluation of personalized course recommendation results

[0142] Use accuracy P, MRR, and MRR to evaluate the effect of the mapping relationship neural network on course recommendation on the test set; determine the accuracy P as follows:

[0143]

[0144] Among them, n hit Indicates that there are n in the test set hit The top K predicted values ​​of a student hit the actual course selection result, K means selecting the top K most likely predicted course selections of a student, and N means the total number of students in the test set.

[0145] Determine MRR as follows:

[0146]

[0147] Among them, p i represents the position of a student's actual course selection result among the top K predicted results. If the actual course selection result is not in the top K predicted results, then p i →∞. Determine NDCG as follows:

[0148]

[0149]

[0150]

[0151] Among them, rel i It represents the relevance score of the position i in the prediction result of a student. The relevance score is 1 when it hits the target and 0 otherwise. i is an integer in [1, K], K ideal It represents the recommendation result of the ideal state, that is, the maximum predicted value of each student is the same as his or her actual course selection value.

[0152] refer to Figure 3 As a preferred embodiment, in step (5) of constructing a mapping relationship neural network of the present invention, the construction method of the mapping capture module is as follows:

[0153] According to students i Course selection sequence The length of the loop structure determines the number of loops S. At the beginning of the loop, the student l i Course selection sequence And the course feature matrix H' extracts the corresponding course feature vector to obtain student l i The course selection feature matrix

[0154]

[0155] in, represents the new feature vector of the student's course selection, J represents the number of non-repeated courses selected by the student, and d represents the vector size of the course feature matrix.

[0156] According to the course selection sequence The first course in the feature matrix Select the corresponding feature vector Will Input a single GRU layer and get the hidden state vector state1 of the first cycle:

[0157]

[0158] Among them, state0 represents the initial hidden state vector, and the initial value is customized.

[0159] The hidden state vector state1 and the adjacency matrix of the student course selection sequence graph and the feature matrix Input the attention mechanism layer to get the attention score vector

[0160]

[0161]

[0162] in, Represents a vector of length J, each element in the vector represents the attention score of the jth course, ⊙ represents the dot product of the vectors, and J represents the number of non-repeated courses selected by the student.

[0163] The hidden state state1 and the attention score vector Input information aggregation layer to get the mapping relationship representation vector of the current cycle

[0164]

[0165] Among them, || represents vector connection.

[0166] Represent the mapping relationship of the current loop as a vector Input it into the single GRU layer of the next cycle to get the hidden state state2 of the second cycle:

[0167]

[0168] Then continue to loop until the Sth loop to get student l i The final mapping relationship represents the vector

[0169] With the same concept as the above method, a personalized course recommendation system based on multi-dimensional mapping relationship is provided, including a data acquisition module, a model reasoning module and a ranking recommendation module;

[0170] The data acquisition module is used to obtain the course set C;

[0171] The model reasoning module is used to map the input of the relational neural network and obtain the probability of students choosing all courses in the course set C after processing the relational neural network. Specifically, the mapping relationship neural network includes an embedding layer, a graph attention mechanism layer, an information aggregation layer, a mapping relationship capture module, a pooling layer, and a normalization layer connected in sequence; wherein the mapping relationship capture module includes a loop structure and a loop body, wherein the loop body: a single GRU layer, an attention mechanism layer, and an information aggregation layer are connected in series;

[0172] The course set C enters the embedding layer to obtain the course feature matrix H 0 , the course feature matrix H 0 , Course Structure Chart G course And the adjacency matrix A of the course structure graph courseInput graph attention module, in the adjacency matrix A of the course structure graph course Based on this, we get the attention score matrix Attention course , attention score matrix Attention course and the course feature matrix H 0 Input the information aggregation layer to obtain the new course feature matrix H', where Indicates course c v After aggregating the features of courses of the same category, the new feature vector is obtained. The new course feature matrix H' is input into the mapping relationship capture module to obtain the mapping relationship representation vector of a certain student; the mapping relationship representation vector of the student is input into the pooling layer to obtain the selection probability of the student for all courses in the course set C.

[0173]

[0174] in, Indicates student l i Select the vth course c v The probability of , V represents the total number of courses;

[0175] The sorting recommendation module is used to sort the selection probability Sort and select the course with the largest probability value as the recommended course.

[0176] On the other hand, the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it can implement the personalized course recommendation method based on multi-dimensional mapping relationship described in the present invention.

[0177] The computer device may be a laptop computer, a desktop computer or a workstation.

[0178] The present invention can also provide a computer device, including a processor and a memory, the memory is used to store a computer executable program, the processor reads the computer executable program from the memory and executes it, and when the processor executes the computer executable program, it can implement the personalized course recommendation method based on multi-dimensional mapping relationship described in the present invention.

[0179] The processor may be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), or an off-the-shelf field programmable gate array (FPGA).

[0180] The memory of the present invention may be an internal storage unit of a laptop computer, a desktop computer or a workstation, such as a memory or a hard disk; or an external storage unit, such as a mobile hard disk or a flash memory card.

[0181] Computer-readable storage media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer-readable storage media may include: read-only memory (ROM), random access memory (RAM), solid-state drive (SSD) or optical disk, etc. Among them, random access memory may include resistance random access memory (ReRAM) and dynamic random access memory (DRAM).

Claims

1. A personalized course recommendation method based on multi-dimensional mapping relationship, characterized in that: The following steps are involved: The course set C is used as the input of the mapping relation neural network. After being processed by the mapping relation neural network, the probability of students choosing all courses in the course set C is obtained. The mapping relationship neural network includes an embedding layer, a graph attention mechanism layer, an information aggregation layer, a mapping relationship capture module, a pooling layer, and a normalization layer connected in sequence; wherein the mapping relationship capture module includes a loop structure and a loop body, wherein the loop body includes a single GRU layer, an attention mechanism layer, and an information aggregation layer connected in series; The course set C enters the embedding layer to obtain the course feature matrix H 0 , the course feature matrix H 0 , Course Structure Chart G course Input graph attention module to get attention score matrix Attention course , attention score matrix Attention course and the course feature matrix H 0 Input the information aggregation layer to obtain a new course feature matrix H', where Indicates course c v After aggregating the features of courses of the same category, the new feature vector is obtained. The new course feature matrix H′ is input into the mapping relationship capture module to obtain the mapping relationship representation vector of a certain student; the mapping relationship representation vector of the student is input into the pooling layer to obtain the selection probability of the student for all courses in the course set C. in, Indicates student l i Select the vth course c v The probability of , V represents the total number of courses; The probability of selection Sort and select the course with the largest probability value as the recommended course.

2. The personalized course recommendation method based on multi-dimensional mapping relationship according to claim 1 is characterized in that: The mapping relationship neural network training comprises the following steps: Get the course category set, build a course structure diagram according to the course category, and build the adjacency matrix A of the course structure diagram course ; Get the student course selection sequence and construct the student course selection sequence graph G based on the student course selection sequence S student , construct a course selection sequence diagram for a student The adjacency matrix of Construct a mapping relationship neural network and loss function, and combine it with the adjacency matrix of the student course selection sequence graph Build the map capture module; The course feature matrix H 0 , Course Structure Chart G course And the adjacency matrix A of the course structure graph course Input graph attention module, in the adjacency matrix A of the course structure graph course Based on this, we get the attention score matrix Attention course ; Attention score matrix course and the course feature matrix H 0 Input the information aggregation layer to obtain the new course feature matrix H′, and input the new course feature matrix H′ into the mapping relationship capture module to obtain student l i The mapping relationship represents the vector The students i The mapping relationship represents the vector Input to the pooling layer to get the student l i The selection probability of all courses in the course set C During training, the training set is divided into multiple batches according to the set batch size. In each training round, the loss of the set training data in each batch is averaged and then back-propagated to update the parameters, and training is carried out until the loss function converges.

3. The personalized course recommendation method based on multi-dimensional mapping relationship according to claim 2 is characterized in that: Adjacency matrix combined with student course selection sequence graph The construction method of the mapping capture module is as follows: According to students i Course selection sequence The length of the loop structure determines the number of loops S. At the beginning of the loop, the student l i Course selection sequence The course feature matrix H is used to extract the corresponding course feature vector to obtain student l i The course selection feature matrix in, represents the new feature vector of the student's course selection, J represents the number of unique courses selected by the student, and d represents the vector size of the course feature matrix; According to the course selection sequence The first course in the feature matrix Select the corresponding feature vector Will Input a single GRU layer and get the hidden state vector state1 of the first cycle: Among them, state0 represents the initial hidden state vector, and the initial value is customized; The hidden state vector state1 and the adjacency matrix of the student course selection sequence graph and the feature matrix Input the attention mechanism layer to get the attention score vector in, Represents a vector of length J, each element in the vector represents the attention score of the jth course, ⊙ represents the dot product of the vector, and J represents the number of non-repeated courses selected by the student; the hidden state state1 and the attention score vector Input information aggregation layer to get the mapping relationship representation vector of the current cycle Among them, || represents vector connection, and the mapping relationship of the current loop is represented by vector Input it into the single GRU layer of the next cycle to get the hidden state state2 of the second cycle: Continue looping until the Sth loop, and get student l i The final mapping relationship represents the vector 4. The personalized course recommendation method based on multi-dimensional mapping relationship according to claim 2 is characterized in that: Constructing a student course selection sequence diagram The adjacency matrix of as follows: Among them, J represents the number of unique courses selected by students, a kj ' indicates student l i Have you chosen the kth course and the jth course successively? If yes, then a kj '=1, otherwise a kj '=0.

5. The personalized course recommendation method based on multi-dimensional mapping relationship according to claim 2 is characterized in that: Adjacency matrix A of the course structure graph course The construction method is as follows: A course =(a ij ) V×V Among them, V×V represents the size of the adjacency matrix, a ij Indicates whether the i-th course and the j-th course belong to the same category z n , if they belong to the same category z n , then a ij =1, otherwise a ij =0.

6. The personalized course recommendation method based on multi-dimensional mapping relationship according to claim 1 is characterized in that: The loss function during the training of the mapping relationship neural network is: Among them, y ij represents the i-th student l i Select the jth course c j The true value of (0 or 1), represents the i-th student l i Select the jth course c j The predicted probability of , M represents the total number of courses, and N represents the total number of students.

7. The personalized course recommendation method based on multi-dimensional mapping relationship according to claim 1 is characterized in that: When the mapping relationship neural network is trained, the course feature matrix H 0 , Course Structure Chart G course And the adjacency matrix A of the course structure graph course Input graph attention module, in the adjacency matrix A of the course structure graph course Based on this, we get the attention score matrix Attention course , attention score matrix Attention course and the course feature matrix H 0 Input the information aggregation layer to obtain the new course feature matrix H′, and input the new course feature matrix H′ into the mapping relationship capture module to obtain student l i The mapping relationship represents the vector The students i The mapping relationship represents the vector Input to the pooling layer to get the student l i The selection probability of all courses in the course set C 8. A personalized course recommendation system based on multi-dimensional mapping relationship, characterized in that: Includes data acquisition module, model reasoning module and ranking recommendation module; The data acquisition module is used to obtain the course set C; The model reasoning module is used to map the input of the relational neural network and obtain the probability of students choosing all courses in the course set C after processing the relational neural network. Specifically, the mapping relationship neural network includes an embedding layer, a graph attention mechanism layer, an information aggregation layer, a mapping relationship capture module, a pooling layer, and a normalization layer connected in sequence; wherein the mapping relationship capture module includes a loop structure and a loop body, wherein the loop body: a single GRU layer, an attention mechanism layer, and an information aggregation layer are connected in series; The course set C enters the embedding layer to obtain the course feature matrix H 0 , the course feature matrix H 0 , Course Structure Chart G course And the adjacency matrix A of the course structure graph course Input graph attention module, in the adjacency matrix A of the course structure graph course Based on this, we get the attention score matrix Attention course , attention score matrix Attention course and the course feature matrix H 0 Input the information aggregation layer to obtain the new course feature matrix H′, where Indicates course c v After aggregating the features of courses of the same category, the new feature vector is obtained. The new course feature matrix H′ is input into the mapping relationship capture module to obtain the mapping relationship representation vector of a certain student; the mapping relationship representation vector of the student is input into the pooling layer to obtain the selection probability of the student for all courses in the course set C. in, Indicates student l i Select the vth course c v The probability of , V represents the total number of courses; The sorting recommendation module is used to sort the selection probability Sort and select the course with the largest probability value as the recommended course.

9. A computer device, characterized in that: It includes a processor and a memory, the memory is used to store a computer executable program, the processor reads the computer executable program from the memory and executes it, and when the processor executes the computer executable program, it can implement the personalized course recommendation method based on multi-dimensional mapping relationship as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program is stored in a computer-readable storage medium. When the computer program is executed by a processor, the personalized course recommendation method based on a multi-dimensional mapping relationship as described in any one of claims 1 to 7 can be implemented.