Personalized course recommendation method and device based on tensor decomposition technology

Through the personalized course recommendation method based on tensor decomposition technology, the heterogeneous student teaching evaluation map and evaluation tensor are constructed, which solves the problem of sparse course recommendation and cold start, achieves accurate course recommendation, and improves learning effects and satisfaction.

CN118708807APending Publication Date: 2024-09-27BEIJING UNIV OF POSTS & TELECOMM
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410765488.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When faced with massive course resources, existing course recommendation technology is difficult to quickly and accurately help students choose appropriate courses according to their own needs, and incomplete information leads to sparse recommendation and cold start problems, affecting the accuracy of the recommendation model.

Method used

A personalized course recommendation method based on tensor decomposition technology is adopted. By constructing a heterogeneous student teaching evaluation map, the graph structure learning method is used to measure students' personalized differences, and the evaluation is combined with knowledge mastery to construct a student teaching evaluation tensor, and through random Gradient descent method is used to train the prediction model for course evaluation prediction.

Benefits of technology

It achieves accurate personalized course recommendation, can dynamically adjust recommendation strategies, ensures that learners obtain learning resources that meet their personal goals and interests, improves learning effects and satisfaction, and solves the problem of integrating learner behavior and comprehensive consideration of multiple implicit factors. problem.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708807A
    Figure CN118708807A
Patent Text Reader

Abstract

The invention provides a personalized course recommendation method and device based on a tensor decomposition technology, and the method comprises the steps: constructing a heterogeneous student teaching evaluation map containing a personal relation network and a course teaching evaluation network according to original heterogeneous teaching evaluation data, based on a learning method of a graph structure, individual differences between students are measured to obtain student characterization vectors; the cosine distance between the representation vectors of any two students is utilized, and the knowledge mastering condition of each student is combined, so that the individuation degree of the students is evaluated; according to an evaluation result, converting the original heterogeneous teaching evaluation data into quantitative new data forms, combining the new data forms in three dimensions of students, courses and personalized types, and constructing a student teaching evaluation tensor; and taking the student teaching evaluation tensor as feature input, taking the evaluation score as a prediction target, and training a prediction model through a stochastic gradient descent method to complete course evaluation prediction. According to the invention, accurate student personalized course recommendation can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of course recommendation, and in particular to a personalized course recommendation method and device based on tensor decomposition technology. Background Art

[0002] Course recommendation is a key process that uses relevant machine learning technologies to recommend the most suitable online or offline courses to students based on their personal characteristics, learning history, interests and learning goals, with the goal of improving students' learning experience and learning outcomes. However, although online course platforms provide a large number of course resources, students who use the platform for the first time may find it difficult to quickly and accurately choose courses that suit them because they lack the opportunity to fully evaluate their preferences, skills and learning goals.

[0003] Course recommendation methods are dedicated to solving the problem of how to help learners make the best choice based on their needs when faced with a vast amount of course resources. Compared with general recommendation technologies, course recommendation technology needs to fully consider learners' course selection needs, but course selection needs are affected by personal interests and many factors such as teachers, classmates, and teaching syllabus. If recommendations are made based solely on learners' online or offline behaviors, incomplete information may result, leading to sparse recommendations and cold start problems, which in turn affect the accuracy of the recommendation model. These reasons continue to constrain the development of course recommendation methods. Summary of the invention

[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0005] To this end, the first purpose of this application is to propose a personalized course recommendation method based on tensor decomposition technology to achieve an accurate personalized course recommendation method.

[0006] The second objective of this application is to propose a personalized course recommendation device based on tensor decomposition technology.

[0007] The third objective of the present application is to provide an electronic device.

[0008] To achieve the above-mentioned purpose, the first embodiment of the present application proposes a personalized course recommendation method based on tensor decomposition technology to realize an accurate personalized course recommendation method, including:

[0009] Based on the original heterogeneous teaching evaluation data, a heterogeneous student teaching evaluation graph containing personal relationship network and course evaluation network is constructed, and the personalized differences between each student are measured based on the graph structure learning method to obtain the student representation vector;

[0010] Using the cosine distance between any two student representation vectors and combining each student's knowledge mastery, the student's personalized degree is evaluated;

[0011] According to the evaluation results of the student's personalization degree, the original heterogeneous teaching evaluation data is converted into a quantitative new data form, and the new data form is combined in three dimensions of students, courses and personalization types to construct a student teaching evaluation tensor and perform feature extraction;

[0012] The student teaching evaluation tensor is used as feature input, the evaluation score is used as the prediction target, and the prediction model is trained by the stochastic gradient descent method to complete the course evaluation prediction.

[0013] Optionally, the construction of a heterogeneous student teaching evaluation graph containing a personal relationship network and a course evaluation network includes:

[0014] Define the original heterogeneous teaching evaluation data quadruple, the expression is:

[0015] re i,j := i ,c j ,r i,j ,mk i,j >

[0016] Among them, i,j is the original evaluation record, s i represents students, c j Represents the course, r i,j Indicates students i Give course c j Teaching evaluation information and r i,j = <rs i,j ,rt i,j >,rs i,j Represents the teaching evaluation score, rt i,j Represents the teaching evaluation content, mk i,j Indicates that the student i In course c j The knowledge mastered in the course or the final course grade achieved;

[0017] Segmenting and removing stop words on the teaching evaluation content, extracting adjectives, verbs and nouns that match a specific theme from the teaching evaluation content, and saving them as nodes in the course teaching evaluation network, wherein the sink features of the adjectives, verbs and nouns are classified as subject word entity types;

[0018] The original graph structure of students and courses i ,c j ,rt i,j >Improved, the expression is:

[0019] ​​

[0020] Among them, w k Indicates students i To the teacher j Teaching content i,j All the keywords extracted from i,j The kth subject word in ;

[0021] According to the gender relationship, guidance relationship and age relationship in the student's personal relationship network, combined with the relationship between text and numerical value in the improved teaching evaluation information, a heterogeneous student teaching evaluation graph containing personal relationship network and course evaluation network is constructed, and the expression is:

[0022]

[0023] in, represents the set of all entities, including grade, tutor, gender, student, teaching evaluation keywords and courses, and ε represents the set of relationships between all entities.

[0024] Optionally, the graph-structure-based learning method measures the individual differences between each student to obtain a student representation vector, including:

[0025] Through DeepWalk, the semantic relationship between nodes is captured and the embedded representation of student entities is learned. When generating node sequences, the parameters of random walks are adjusted through the walk strategy Ns to improve the accuracy of node representation learning.

[0026] By optimizing the objective function, a vectorized representation of each entity is obtained, wherein the expression of the objective function is:

[0027]

[0028] Among them, u, v, n i Represents the nodes in the heterogeneous student teaching evaluation graph. For each original (u, V), define Ns(u) represents the set of neighbor nodes obtained after sampling the neighbor nodes around node u according to the walking strategy Ns, and f(x) represents the mapping function from the node to the vectorized feature representation.

[0029] Optionally, when generating the node sequence, adjusting the parameters of the random walk by the walk strategy Ns includes:

[0030] By adjusting the values ​​of hyperparameters p and q, the behavior of the random walk can be controlled to make it more suitable for different types of graph structures and application scenarios. Among them, p controls the possibility of repeatedly visiting previously visited nodes during the random walk, and q controls whether the random walk is directed outward or inward.

[0031] Optionally, the method of using the cosine distance between any two student representation vectors and combining each student's knowledge mastery to evaluate the similarity and personalization between students includes:

[0032] The cosine distance is obtained by calculating the cosine value of the angle between any two student representation vectors, wherein the value of the cosine distance is used to represent the similarity between students;

[0033] Convert all students' course evaluations into vectors The personalized evaluations are divided into different types by adjusting the threshold of the k-means clustering algorithm to ensure that the evaluations of students with similar styles and contents are regarded as the same type of personalized type t(s i ,c j );

[0034] According to the value of the cosine distance, combined with the final grade of each student's course, the student's comment style and learning effect are converted into a quantitative similarity measure. The expression of personalized similarity is:

[0035]

[0036] Among them, Sim((s i ,c k ),(s j ,c l ) indicates student i For Course C k Evaluation and students j For Course C l The similarity between the evaluations of Indicates students i For Course C k The teaching evaluation score, Indicates students j For Course C l The teaching evaluation score, represents the concatenation operation between two vectors, and β represents the weight constant parameter.

[0037] Optionally, according to the evaluation results of the student's personalized degree, the original heterogeneous teaching evaluation data is converted into a quantitative new data form, and the new data form is combined in three dimensions of students, courses and personalized types to construct a student teaching evaluation tensor and extract relevant features, including:

[0038] The original heterogeneous teaching evaluation data is converted into a quantitative new data form, and the expression is:

[0039] re' i,j := i ,c j ,t(s​i ,c j ),rs i,j >

[0040] Among them, re' i,j For converted evaluation records;

[0041] In the process of constructing the student teaching evaluation tensor, each evaluation record is re' i,j The first three elements are used as the dimensions of the student teaching evaluation tensor, which records the evaluation re' i,j The last element is the predicted label value.

[0042] The student teaching evaluation vector is decomposed, and the D-dimensional vector decomposed from the student teaching evaluation tensor is expressed as S i ,C j ,T k Said that students i For Course C j At the level of personalization t(s i ,c j ) express, The personalization type is expressed as:

[0043]

[0044] Optionally, the process of decomposing the student teaching evaluation vector further includes:

[0045] Setting zero-mean, independent Gaussian prior distributions for the feature vectors of students and courses, the expression of this process is:

[0046]

[0047] The personalized similarity is used as an additional factor to introduce structural and semantic similarity into students' teaching evaluation behavior. Assuming that the personalized similarity of a student's evaluation in a certain course is conditioned by the personalized similarity of the remaining comments in the course except for this evaluation, the personalized similarity of all evaluations except the kth evaluation is expressed as T′ k Indicates that the specific form of the conditional prior is:

[0048]

[0049] Optionally, the student teaching evaluation tensor is used as a feature input, the evaluation score is used as a prediction target, and a prediction model is trained by a stochastic gradient descent method to complete the course evaluation prediction, including:

[0050] During the training process, the stochastic gradient descent method is used to automatically learn the model parameters, with the goal of minimizing the loss function. Combined with sparse observations, the unknown evaluation is predicted by maximizing the logarithm of the posterior distribution. The expression of the loss function is:

[0051] L(S,C,T)=L(S,C,T)1+L(S,C,T)2

[0052]

[0053] Among them, L(S,C,T) is the total loss term, L(S,C,T)1 is the observation error term, and L(S,C,T)2 is the regularization term.

[0054] To achieve the above-mentioned purpose, the second embodiment of the present application proposes a personalized course recommendation device based on tensor decomposition technology, including:

[0055] The personalized generation module is used to construct a heterogeneous student teaching evaluation graph containing a personal relationship network and a course evaluation network based on the original heterogeneous teaching evaluation data, and to measure the personalized differences between each student based on the graph structure learning method to obtain the student representation vector;

[0056] The personalized assessment module is used to evaluate the personalized degree of students by using the cosine distance between any two student representation vectors and combining the knowledge mastery of each student;

[0057] A construction module is used to convert the original heterogeneous teaching evaluation data into a quantitative new data form according to the evaluation results of the student's personalized degree, and combine the new data form in three dimensions of students, courses and personalized types to construct a student teaching evaluation tensor and perform feature extraction;

[0058] The prediction module is used to take the student teaching evaluation tensor as feature input, take the evaluation score as the prediction target, train the prediction model through the stochastic gradient descent method, and complete the course evaluation prediction.

[0059] To achieve the above-mentioned purpose, the third aspect of the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0060] The memory stores computer-executable instructions;

[0061] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the first aspects above.

[0062] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0063] By constructing a heterogeneous graph of teaching evaluation, vectorized modeling and student portraits, describing and classifying personalized vectors, and expanding the rating matrix to a three-dimensional rating tensor, it is possible to provide accurate course recommendations based on students' historical behaviors and preferences. It can also dynamically adjust the recommendation strategy as time goes by and as students' needs change, ensuring that each learner can obtain the learning resources that best suit their personal goals and interests, thereby greatly improving learning outcomes and satisfaction. It solves the difficulties of being unable to efficiently integrate learners' online and offline behaviors and being unable to comprehensively consider the various implicit factors that affect course selection, thereby achieving accurate personalized course recommendations.

[0064] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0066] Figure 1 It is a schematic diagram showing that a course selection process for a certain learning process may be affected by comprehensive factors according to an embodiment of the present application;

[0067] Figure 2 is a flow chart of a personalized course recommendation method based on tensor decomposition technology shown in an embodiment of the present application;

[0068] Figure 3 is a block diagram of a personalized course recommendation device based on tensor decomposition technology shown in an embodiment of the present application;

[0069] Figure 4 It is a block diagram of an electronic device. DETAILED DESCRIPTION

[0070] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0071] The following describes a personalized course recommendation method and device based on tensor decomposition technology in an embodiment of the present application with reference to the accompanying drawings.

[0072] Figure 1 is a flowchart of a personalized course recommendation method based on tensor decomposition technology according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:

[0073] Step 101, construct a heterogeneous student teaching evaluation graph containing a personal relationship network and a course evaluation network based on the original heterogeneous teaching evaluation data, and measure the personalized differences between each student based on a graph structure learning method to obtain a student representation vector.

[0074] In order to avoid potential bias in teaching evaluation and grading, this application requires that students can only view their final grades after completing the course evaluation, and teachers can only view students' evaluations of their courses after uploading their students' grades, thereby ensuring the objectivity and fairness of teaching evaluation and grading.

[0075] Take a student choosing a course as an example. Figure 2 It mainly describes the phenomenon that when students make course selection, they are influenced by many factors, such as course selection needs, personal interests, teachers, classmates, and teaching syllabus. It is difficult to comprehensively consider the various implicit factors that affect course selection. In order to overcome the objective problems, this application constructs a teaching evaluation heterogeneous map to represent and extract features of the comprehensive factors in the "student-course selection" process.

[0076] First, this application defines the original heterogeneous teaching evaluation data quadruple according to the student's behavior and comprehensive attribute characteristics to construct the basic knowledge structure of the initial state, which is expressed as:

[0077] re i,j := i ,c j ,r i,j ,mk i,j >

[0078] Among them, i,j is the original evaluation record, s i represents students, c j Represents the course, r i,j Indicates students i Give course c j Teaching evaluation information and r i,j = <rs i,j ,rt i,j >,rs i,j Represents the teaching evaluation score, rt i,j Represents the teaching evaluation content, mk i,j Indicates that the student i In course c j The knowledge mastered in the course or the final course grade achieved.

[0079] Then, the evaluation content is segmented and stop words are removed. Adjectives, verbs and nouns that match the specific topic are extracted from the evaluation content and saved as nodes in the course evaluation network. The sink features of adjectives, verbs and nouns are classified as subject term entity types.​

[0080] After completing the above operations, this application will create a graph structure of the original students and courses. i ,c j ,rt i,j > Improve it to make its meaning more complete, use W i,j Indicates students i To the teacher j Teaching content i,j All the keywords extracted from k Indicates students i To the teacher j Teaching content i,j All the keywords extracted from i,j The kth keyword in W i,j The set of is represented by W, that is:

[0081] Then, the improvement process of the original graph structure of students and courses can be expressed as:

[0082]

[0083] It should be noted that there is also a complex network of personal relationships between students, and this network structure may also affect students' choice of courses. For example, students are easily influenced by the course choices of their classmates, so their course preferences may not be independent. In addition, students' choice of courses may also be influenced by their teachers or tutors. Usually tutors will recommend students to choose courses related to their research fields in order to prepare knowledge for their future research work. In order to overcome this phenomenon, a more comprehensive heterogeneous teaching evaluation map must be constructed. Therefore, in order to more comprehensively construct the proposed heterogeneous teaching evaluation map, the present invention introduces three easily accessible and objective additional relationships: gender relationship (describing the association between student entities and gender entities (male or female)); guidance relationship (describing the supervisory relationship between student entities and their tutor entities); grade relationship (describing the relationship between student entities and their grade).

[0084] That is, in one embodiment of the present application, based on the gender relationship, guidance relationship and age relationship in the student personal relationship network, combined with the relationship between the text and the numerical value in the improved teaching evaluation information, a heterogeneous student teaching evaluation map containing 6 kinds of association relationships of the personal relationship network and the course evaluation network is constructed, and the expression is:

[0085]

[0086] in, ​represents the set of all entities, including grade, tutor, gender, student, teaching evaluation keywords and courses, and ε represents the set of relationships between all entities.

[0087] Since students have differences and commonalities in terms of instructors, grade, gender, teaching evaluation information (text + score) and courses, the constructed teaching evaluation map presents unique but interrelated characteristics.

[0088] After constructing the teaching evaluation graph, in order to measure the individual differences between each student and obtain the student representation vector, this application adopts a graph structure-based learning method to learn the embedded representation of each student entity. In the graph structure, the co-occurrence pattern can represent the degree of association or correlation between nodes.

[0089] As a possible implementation method, this application captures the semantic relationship between nodes through DeepWalk and learns the embedded representation of student entities. DeepWalk learns the vector representation of nodes by capturing the co-occurrence patterns between nodes.

[0090] It should be noted that in order to better understand the differences between students and their personalized characteristics in the teaching evaluation graph, DeepWalk converts the access sequence of these nodes into a vector representation to capture the semantic relationship between nodes. In the process of generating a node sequence, the next node is usually determined by performing random sampling with equal probability on all possible edges on the current node.

[0091] However, this operation ignores the local structural properties and similarities between adjacent nodes in the graph, which are very important for node representation learning. The classic breadth-first search and depth-first search algorithms can help capture the local structural information between nodes, but they are not flexible and cannot adapt to the characteristics of different graph structures. In order to solve this problem, the method proposed in this application maps the nodes in the graph to a low-dimensional vector space by adjusting the parameters of the random walk. This process combines the characteristics of breadth-first search and depth-first search, and can explore node neighborhoods in different ways, effectively balancing the breadth and depth of exploring node neighborhoods, and better capturing the similarities and local structural information between nodes in the graph, thereby improving the effect of node representation learning.

[0092] In one embodiment of the present application, given a node u, with a i represents the i-th node in the walk, and a0=u. In the present invention, the unnormalized transition probability between node v and node x is ω v,x Indicates that Z is used as the normalized weight coefficient.

[0093] The walk sequence guidance strategy of the present invention uses a second-order walk method based on two hyperparameters p and q.

[0094] Specifically, the hyperparameter p controls the probability of revisiting previously visited nodes during a random walk. A higher p value increases the preference for previously visited nodes during the walk, making the walk more inclined to explore locally in the graph. In contrast, a lower p value reduces this preference, making the walk more likely to jump to areas far away from previously visited nodes. The hyperparameter q controls whether the random walk is directed outward or inward. Specifically, a higher q value makes the walk more inclined to expand outward, that is, it is more likely to explore unexplored areas in the graph, while a lower q value makes the walk more inclined to shrink inward, that is, it is more likely to explore within a known neighborhood. Therefore, by adjusting the values ​​of the hyperparameters p and q, the behavior of the random walk can be flexibly controlled to make it more adaptable to different types of graph structures and application scenarios.

[0095] In one embodiment of the present application, Ns is used to represent the above walk strategy, and 1 is used to define the value of q. Assume that the random walk currently starts from node t via edge (t, v) to node v, and the shortest distance between node t and x is d tx Indicates that the next edge to be walked is determined by the transition probability ω of v on the connected edge (v, x) v,x Decide when d tx = 0 and (v,x)∈ε, ω v,x The value of When tx = 1 and (v,x)∈ε, ω v,x The value of d is 1; tx =2 and (v,x)∈ε, ω v,x The value of Otherwise the value is 0. i The distribution produces a representation that is, when (v, x∈ε) P(a i =x|a i-1 =v) is ω v,x The ratio of the normalized weight coefficient is 0 in other cases. The dimension of the vectorized representation of each entity in the teaching evaluation graph is represented by d, and the mapping function from the node (entity) to the vectorized feature representation is represented by f(x). Then, for each original node (u, V), we define Indicates sampling of neighboring nodes around node u through the Ns strategy.

[0096] It should be noted that the Ns strategy here can be determined according to specific needs and scenarios. Usually, neighbor nodes are selected based on the adjacency relationship of nodes or other graph structure information.

[0097] Finally, solving the objective function ObectiveG can obtain the d-dimensional vector representation of all nodes (including students, etc.). Through such a vector representation, the position and association of nodes in the teaching evaluation graph can be better understood and analyzed. The objective function is minimized or maximized through an optimization algorithm so that the vector representation of the node can best capture the characteristics and relationships of the nodes in the graph structure. Here, the objective function is expressed as:

[0098]

[0099] Among them, u, v, n i Represents the nodes in the heterogeneous student teaching evaluation graph. For each original (u, V), define Ns(u) represents the set of neighbor nodes obtained after sampling the neighbor nodes around node u according to the walking strategy Ns, and f(x) represents the mapping function from the node to the vectorized feature representation.

[0100] Step 102, using the cosine distance between any two student representation vectors and combining each student's knowledge mastery, evaluate the student's personalization level.

[0101] In this step, the present application utilizes the value of the cosine distance between any two student vectors, combined with each student's knowledge mastery, to convert the student's comment style and learning effect into a quantitative similarity measure, thereby achieving an evaluation of the student's degree of personalization.

[0102] In one embodiment of the present application, the final grade of the course is used as the knowledge mastery of each student.

[0103] As a possible implementation, the present application is based on a vector space model and measures their similarity in the feature space by calculating the cosine distance between any two student vectors.

[0104] Cosine distance measures the similarity between two vectors by calculating the cosine value of the angle between them. The value range is between -1 and 1. The closer the value is to 1, the higher the similarity. By quantifying the similarity, we can more intuitively understand the similarities and differences between students, help discover students' common characteristics and potential problems, and provide more targeted guidance and support for personalized teaching and learning. The advantage is that it provides an objective and quantifiable way to measure the similarities and differences between students, avoiding the bias caused by subjective evaluation, and converting students' comment styles and learning effects into numerical values. It can provide more accurate guidance and support for personalized teaching and learning, and help teachers better understand students' needs and characteristics, thereby providing more effective teaching services.

[0105] Further, in this application, the cascade operation between two vectors is used The weight constant parameter is β, which converts all students' course evaluations into vectors. The personalized reviews are divided into different types by adjusting the threshold of the k-means clustering algorithm to ensure that reviews with similar styles and contents are considered as the same type of personalized type (t(s i ,c j ).

[0106] In one embodiment of the present application, the measurement expression of personalized similarity is:

[0107]

[0108] Among them, Sim((s i ,c k ),(s j ,c l ) indicates student i For Course C k Evaluation and students j For Course C l The similarity between the evaluations of Indicates students i For Course C k The teaching evaluation score, Indicates students j For Course C l The teaching evaluation score, represents the concatenation operation between two vectors, and β represents the weight constant parameter.

[0109] In addition, in order to reduce the sparsity of the evaluation, the present invention uniformly changes the categories with fewer vectors to the default type by modifying the threshold.

[0110] Step 103, according to the evaluation results of the student's personalization degree, the original heterogeneous teaching evaluation data is converted into a quantitative new data form, and the new data form is combined in three dimensions of students, courses and personalization types to construct a student teaching evaluation tensor and perform feature extraction.

[0111] In some embodiments of the present application, after completing the task of integrating teaching evaluation to generate students' personalized characteristics and students' personalized degree evaluation modeling, the original heterogeneous teaching evaluation data is converted into a quantitative new data form, which is expressed as:

[0112] re' i,j := i ,c j ,t(s i ,c j ),rs i,j >

[0113] ​The present invention adopts the method of student teaching evaluation tensor, and combines the evaluation records re' into a three-dimensional tensor according to the three dimensions of students, courses and personalized types. Compared with the traditional matrix decomposition-based method, the student teaching evaluation tensor is more comprehensive in the expansion of feature space, introducing students' knowledge mastery, comment preferences and differences in student relationship structure as the third dimension, thereby better capturing the complex relationship between students and courses.

[0114] It can be understood that in the process of constructing the student teaching evaluation tensor, the first three elements of each evaluation record re' are used as the dimensions of the student teaching evaluation tensor, and the last element is used as the predicted label value. By taking the student teaching evaluation tensor as the feature input, building the model and predicting the label value based on the input, accurate prediction of the course score is achieved. This method enables the model to more comprehensively consider the personalized needs and behavioral characteristics of students, thereby improving the accuracy and reliability of score prediction.

[0115] Therefore, in the student teaching evaluation vector, its three dimensions correspond to the personalization types, namely students, courses and users, with the size dimension of students being m, courses being n, and users being K (R m×n×k ), the D-dimensional vector decomposed from the student teaching evaluation tensor is represented by S i ,C j ,T k Said that students i For Course C j At the level of personalization t(s i ,c j ) express.

[0116] Personalization types can be expressed as:

[0117]

[0118] It should be noted that in practical applications, the score tensor is often sparse. Directly decomposing such a score tensor may lead to overfitting problems. To solve this problem, the present invention introduces Bayesian processing and utilizes the personalized similarity mentioned above.

[0119] Specifically, the present invention achieves this goal by imposing zero mean and independent Gaussian priors on the eigenvectors of the entities. This process is represented by (I is a unit matrix of size D×D). The purpose of this is to make the model more robust and generalizable, and to better handle the sparsity and noise of data. By processing the feature vectors, the complexity of the model can be better controlled, and the model can better take into account the differences between users and the sparsity of data, thereby improving the generalization and adaptability of the model.

[0120] In this step, the present invention introduces structural and semantic similarity into students' teaching evaluation behavior by considering personalized similarity as an additional factor, and assumes that these different factors have different effects on teaching evaluation scores. On this basis, it is further assumed that the similarity measurement of a student's evaluation in a certain course is conditioned by the similarity of the remaining comments in the course except for this evaluation, and the personalized similarity of all evaluations except the kth evaluation is denoted by T′ k The specific form of the conditional prior is:

[0121] Step 104, taking the student teaching evaluation tensor as feature input, taking the evaluation score as the prediction target, training the prediction model through the stochastic gradient descent method, and completing the course evaluation prediction.

[0122] After constructing the student teaching evaluation tensor, the next challenge is how to effectively learn the model parameters to achieve accurate prediction of unknown scores.

[0123] In an embodiment of the present application, the stochastic gradient descent method (SGD) is used to automatically learn the model parameters, and combined with sparse observations, the unknown teaching evaluation is predicted by maximizing the logarithm of the posterior distribution. In the course recommendation process, this step can be further expanded to train the model parameters using students' behavioral data (such as watching videos, completing homework, participating in discussions, etc.) and feedback (such as ratings, comments, etc.) on the courses they have learned. By continuously optimizing the model, the system can more accurately predict students' interest and performance in future courses, thereby achieving personalized course recommendations and improving learning outcomes and satisfaction.

[0124] This step can be expressed by minimizing the loss function shown below:

[0125] L(S,C,T)=L(S,C,T)1+L(S,C,T)2

[0126]

[0127] Among them, L(S,C,T) is the total loss term, L(S,C,T)1 is the observation error term, and L(S,C,T)2 is the regularization term.

[0128] This part aims to prevent the model from overfitting.i 、Course C i , and personalization type T k The square term of the eigenvector of , the model tends to choose a smaller parameter value, thereby reducing the complexity of the model.

[0129] It can be understood that the method proposed by the present invention allows the model to estimate the parameters of the learning model by finding some points without having to infer the entire posterior distribution, which helps to control the amount of calculation of the model. However, if the hyperparameters are not set correctly, the maximum a posteriori used to calculate these point estimates often leads to overfitting problems, especially when the data set is relatively large but sparse. During the training process, the model will look for the parameter estimate θ that maximizes the probability P(D|θ) under the conditions of a given data set D and parameter θ. * The model then uses the learned parameters θ * To predict unseen scoring samples, this estimation is very sensitive to random changes in data and easily leads to overfitting. Therefore, in order to solve this problem, the present invention adopts a Bayesian processing method to process the tensor decomposition process. In the course recommendation process, this method can be used to optimize the parameters of the recommendation model to improve the accurate prediction of student interests and reduce the risk of overfitting, thereby enhancing the recommendation effect and robustness of the system.

[0130] In summary, the present invention not only realizes the effective learning of model parameters by introducing stochastic gradient descent method and Bayesian processing, but also ensures the efficiency and robustness of the model when processing large-scale sparse data, providing a solid technical foundation for personalized course recommendation methods.

[0131] The embodiments of the present application construct a heterogeneous graph of teaching evaluation, vectorized modeling and student portraits, description and classification of personalized vectors, and expand the rating matrix to a three-dimensional rating tensor. It can provide accurate course recommendations based on students' historical behaviors and preferences, and dynamically adjust the recommendation strategy as time and student needs change, to ensure that each learner can obtain the learning resources that best suit their personal goals and interests, thereby greatly improving learning outcomes and satisfaction, and solving the difficulties of being unable to efficiently integrate learners' online and offline behaviors and being unable to comprehensively consider the various implicit factors that affect course selection, thereby achieving accurate personalized course recommendations.

[0132] In order to implement the above embodiment, the present application also proposes a personalized course recommendation device based on tensor decomposition technology.

[0133] Figure 3 10 is a block diagram of a personalized course recommendation device based on tensor decomposition technology according to an embodiment of the present application, including:

[0134] The personalized generation module 100 is used to construct a heterogeneous student teaching evaluation graph containing a personal relationship network and a course evaluation network based on the original heterogeneous teaching evaluation data, and to measure the personalized differences between each student based on a graph structure learning method to obtain a student representation vector;

[0135] The personalized evaluation module 200 is used to evaluate the personalized degree of students by using the cosine distance between any two student representation vectors and combining the knowledge mastery of each student;

[0136] A construction module 300 is used to convert the original heterogeneous teaching evaluation data into a quantitative new data form according to the evaluation results of the student's personalized degree, and combine the new data form in three dimensions of students, courses and personalized types to construct a student teaching evaluation tensor and perform feature extraction;

[0137] The prediction module 400 is used to take the student teaching evaluation tensor as feature input, take the evaluation score as the prediction target, train the prediction model through the stochastic gradient descent method, and complete the course evaluation prediction.

[0138] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0139] Figure 4 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.

[0140] like Figure 4 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0141] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0142] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the voice instruction response method. For example, in some embodiments, the voice instruction response method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the voice instruction response method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the voice instruction response method in any other appropriate manner (e.g., by means of firmware).

[0143] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0144] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0145] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0146] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0147] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.

[0148] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0149] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.

[0150] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.

Claims

1. A personalized course recommendation method based on tensor decomposition technology, characterized in that: include: Based on the original heterogeneous teaching evaluation data, a heterogeneous student teaching evaluation graph containing personal relationship network and course evaluation network is constructed, and the personalized differences between each student are measured based on the graph structure learning method to obtain the student representation vector; Using the cosine distance between any two student representation vectors and combining each student's knowledge mastery, the student's personalized degree is evaluated; According to the evaluation results of the student's personalization degree, the original heterogeneous teaching evaluation data is converted into a quantitative new data form, and the new data form is combined in three dimensions of students, courses and personalization types to construct a student teaching evaluation tensor and perform feature extraction; The student teaching evaluation tensor is used as feature input, the evaluation score is used as the prediction target, and the prediction model is trained by the stochastic gradient descent method to complete the course evaluation prediction.

2. The method according to claim 1, characterized in that The construction of a heterogeneous student teaching evaluation graph containing a personal relationship network and a course evaluation network includes: Define the original heterogeneous teaching evaluation data quadruple, the expression is: re i,j :=<s i ,c j ,r i,j ,mk i,j > Among them, i,j is the original evaluation record, s i represents students, c j Represents the course, r i,j Indicates students i Give course c j Teaching evaluation information and r i,j = <rs i,j ,rt i,j >,rs i,j Represents the teaching evaluation score, rt i,j Represents the teaching evaluation content, mk i,j Indicates that the student i In course c j The knowledge mastered in the course or the final course grade achieved; Segmenting and removing stop words on the teaching evaluation content, extracting adjectives, verbs and nouns that match a specific theme from the teaching evaluation content, and saving them as nodes in the course teaching evaluation network, wherein the sink features of the adjectives, verbs and nouns are classified as subject word entity types; The original graph structure of students and courses i ,c j ,rt i,j >Improved, the expression is:​ Among them, w k Indicates students i To the teacher j Teaching content i,j All the keywords extracted from i,j The kth subject word in ; According to the gender relationship, guidance relationship and age relationship in the student's personal relationship network, combined with the relationship between text and numerical value in the improved teaching evaluation information, a heterogeneous student teaching evaluation graph containing personal relationship network and course evaluation network is constructed, and the expression is: in, represents the set of all entities, including grade, tutor, gender, student, teaching evaluation keywords and courses, and ε represents the set of relationships between all entities.

3. The method according to claim 2, characterized in that The graph-based learning method measures the individual differences between each student to obtain a student representation vector, including: Through DeepWalk, the semantic relationship between nodes is captured and the embedded representation of student entities is learned. When generating node sequences, the parameters of random walks are adjusted through the walk strategy Ns to improve the accuracy of node representation learning. By optimizing the objective function, a vectorized representation of each entity is obtained, wherein the expression of the objective function is: Among them, u, v, n i Represents the nodes in the heterogeneous student teaching evaluation graph. For each original (u, V), define Ns(u) represents the set of neighbor nodes obtained after sampling the neighbor nodes around node u according to the walking strategy Ns, and f(x) represents the mapping function from the node to the vectorized feature representation.

4. The method according to claim 3, characterized in that When generating the node sequence, the parameters of the random walk are adjusted by the walk strategy Ns, including: By adjusting the values ​​of hyperparameters p and q, the behavior of the random walk can be controlled to make it more suitable for different types of graph structures and application scenarios. Among them, p controls the possibility of repeatedly visiting previously visited nodes during the random walk, and q controls whether the random walk is directed outward or inward.

5. The method according to claim 4, characterized in that The method uses the cosine distance between any two student representation vectors and combines the knowledge mastery of each student to evaluate the similarity and personalization between students, including: The cosine distance is obtained by calculating the cosine value of the angle between any two student representation vectors, wherein the value of the cosine distance is used to represent the similarity between students; Convert all students' course evaluations into vectors The personalized evaluations are divided into different types by adjusting the threshold of the k-means clustering algorithm to ensure that the evaluations of students with similar styles and contents are regarded as the same type of personalized type t(s i ,c j ); According to the value of the cosine distance, combined with the final grade of each student's course, the student's comment style and learning effect are converted into a quantitative similarity measure. The expression of personalized similarity is: Among them, Sim((s i ,c k ),(s j ,c l ) indicates student i For Course C k Evaluation and students j For Course C l The similarity between the evaluations of Indicates students i For Course C k The teaching evaluation score, Indicates students j For Course C l The teaching evaluation score, represents the concatenation operation between two vectors, and β represents the weight constant parameter.

6. The method according to claim 5, characterized in that According to the evaluation results of the student's personalized degree, the original heterogeneous teaching evaluation data is converted into a quantitative new data form, and the new data form is combined in three dimensions of students, courses and personalized types to construct a student teaching evaluation tensor and extract relevant features, including: The original heterogeneous teaching evaluation data is converted into a quantitative new data form, and the expression is: re’ i,j :=<s i ,c j ,t(s i ,c j ),rs i,j > Among them, re' i,j For converted evaluation records; In the process of constructing the student teaching evaluation tensor, each evaluation record is re' i,j The first three elements are used as the dimensions of the student teaching evaluation tensor, which records the evaluation re' i,j The last element is the predicted label value. The student teaching evaluation vector is decomposed, and the D-dimensional vector decomposed from the student teaching evaluation tensor is expressed as S i ,C j ,T k Said that students i For Course C j At the level of personalization t(s i ,c j ) express, The personalization type is expressed as:

7. The method according to claim 6, characterized in that The process of decomposing the student teaching evaluation vector also includes: Setting zero-mean, independent Gaussian prior distributions for the feature vectors of students and courses, the expression of this process is: The personalized similarity is used as an additional factor to introduce structural and semantic similarity into students' teaching evaluation behavior. Assuming that the personalized similarity of a student's evaluation in a certain course is conditioned by the personalized similarity of the remaining comments in the course except for this evaluation, the personalized similarity of all evaluations except the kth evaluation is expressed as T′ k Indicates that the specific form of the conditional prior is:

8. The method according to claim 7, characterized in that The method uses the student teaching evaluation tensor as a feature input, uses the evaluation score as a prediction target, trains the prediction model through the stochastic gradient descent method, and completes the course evaluation prediction, including: During the training process, the stochastic gradient descent method is used to automatically learn the model parameters, with the goal of minimizing the loss function. Combined with sparse observations, the unknown evaluation is predicted by maximizing the logarithm of the posterior distribution. The expression of the loss function is: L(S,C,T)=L(S,C,T)1+L(S,C,T)2 Among them, L(S,C,T) is the total loss term, L(S,C,T)1 is the observation error term, and L(S,C,T)2 is the regularization term.

9. A personalized course recommendation device based on tensor decomposition technology, characterized in that: include: The personalized generation module is used to construct a heterogeneous student teaching evaluation graph containing a personal relationship network and a course evaluation network based on the original heterogeneous teaching evaluation data, and to measure the personalized differences between each student based on the graph structure learning method to obtain the student representation vector; The personalized assessment module is used to evaluate the personalized degree of students by using the cosine distance between any two student representation vectors and combining the knowledge mastery of each student; A construction module is used to convert the original heterogeneous teaching evaluation data into a quantitative new data form according to the evaluation results of the student's personalized degree, and combine the new data form in three dimensions of students, courses and personalized types to construct a student teaching evaluation tensor and perform feature extraction; The prediction module is used to take the student teaching evaluation tensor as feature input, take the evaluation score as the prediction target, train the prediction model through the stochastic gradient descent method, and complete the course evaluation prediction.

10. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Course recommendation method based on meta-relationship

    CN114357306A

  • Online course recommendation method based on double-tower graph convolutional neural network

    CN116992151A

  • Personalized teaching resource recommendation method for large-scale users

    WO2021109464A1

  • AU2020103529A4