Knowledge graph-based personalized learning path dynamic recommendation method and device
Through the dynamic recommendation method of personalized learning paths based on knowledge graph, the problem of unclear learning direction in online learning is solved, and the accurate recommendation of personalized learning paths is achieved, and learning efficiency and effect are improved.
Patent Information
- Application Number
- CN202411390855.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2024-11-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In online learning, it is difficult for students to find valuable content to themselves in massive educational resources, resulting in unclear learning direction and reduced learning effect.
A personalized learning path dynamic recommendation method based on knowledge graph is adopted, and a personalized learning path is generated through steps such as obtaining user information, similarity calculation, and learning path adjustment to ensure that the path matches the user's learning progress and interests.
It improves the accuracy and efficiency of the learning path, helps students obtain the required knowledge more effectively, avoids information overload, and enhances the learning experience.
Smart Images

Figure CN118885677A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of learning path recommendation technology, and specifically, to a method and device for dynamically recommending personalized learning paths based on a knowledge graph. Background Art
[0002] In recent years, with the development of science and technology, "Internet + Education" has also become a hot research field, and more and more students choose to study online. However, this trend is also accompanied by a series of problems, one of which is the proliferation of knowledge points in online learning.
[0003] There are a vast amount of educational resources and information on the Internet, and it is difficult for students to find valuable content in this information. This not only makes students lose their way in knowledge and find it difficult to determine the direction of learning, but also leads to a decline in learning results. Summary of the invention
[0004] The embodiments of the present invention provide a method and device for dynamically recommending personalized learning paths based on a knowledge graph, so as to at least solve the problem of inaccurate learning paths in related technologies.
[0005] According to an embodiment of the present invention, a method for dynamically recommending personalized learning paths based on a knowledge graph is provided, comprising: Acquire user information, wherein the user information includes at least one of first user demand information, first user learning record information, and first user learning test information of the target user, and at least one of second user demand information, second user learning record information, and second user learning test information of the neighboring user; Performing similarity calculation on the user information by using a preset first algorithm to obtain similar user information of similar users whose similarity with the user information satisfies a similarity condition, wherein the neighboring users include the similar users; According to the similar user information, an initial learning path corresponding to the similar user information is obtained, and the initial learning path is determined as a recommended learning path, and then the recommended learning path is adjusted based on the user's learning progress and a pre-constructed knowledge graph to generate a target learning path.
[0006] In an exemplary embodiment, performing similarity calculation on the user information by using a preset first algorithm to obtain similar user information of similar users whose similarity to the user information satisfies a similarity condition includes: Obtaining an item category rating matrix, wherein the item category rating matrix is constructed based on previously obtained historical preference data of a reference user; Based on the item category rating matrix, similarity between the target user and neighboring users is calculated by a similarity algorithm to obtain a similarity matrix; The similarity matrix is solved and calculated by a proximity value algorithm to obtain the item interest degree; Sorting the interest levels of the items to obtain target items that meet the interest level condition; The neighboring users are filtered and screened according to the target item to determine a first neighboring user, and the first user information of the first neighboring user is used as the similar user information.
[0007] In an exemplary embodiment, after determining a recommended learning path according to the similar user information and generating a target learning path based on the recommended learning path, the method further includes: Acquire learning progress information of the target user, where the learning progress information is associated with the target learning path; The target learning path is adjusted based on the learning progress information, the first user learning record information, and the first user learning test information to obtain a first learning path.
[0008] In an exemplary embodiment, the performing path adjustment processing on the target learning path based on the learning progress information, the first user learning record information, and the first user learning test information includes: Obtain identification values of the knowledge points in the target learning path; calculate the mastery degree of the knowledge points based on the identification values, the learning progress information, the first user learning record information, and the first user learning test information to obtain the knowledge point scores; if the knowledge point scores meet the score conditions, temporarily delete the knowledge points, otherwise retain them.
[0009] In an exemplary embodiment, the performing path adjustment processing on the target learning path based on the learning progress information, the first user learning record information, and the first user learning test information includes: Acquire knowledge point information; if the first knowledge point is not included in the target learning path, based on the learning progress information, add the first knowledge point to the target learning path to obtain a second learning path; wherein the knowledge point information includes the first knowledge point.
[0010] In an exemplary embodiment, before performing similarity calculation on the user information by using a preset first algorithm to obtain similar user information of similar users whose similarity to the user information satisfies a similarity condition, the method further includes: Obtaining test paper generation constraint conditions, wherein the test paper generation is used to conduct a learning test on a target user; Encoding the test questions contained in the test paper to obtain the test question codes; Generate an initial test paper group, and calculate the fitness value and iteration number of the offspring of the initial test paper group based on a preset genetic algorithm; if the fitness value and / or iteration number meet the output conditions, output the target test paper after iteration for learning test.
[0011] In an exemplary embodiment, before obtaining the user information, the method further includes: Get course information; The course information is subjected to graph integration processing to obtain a course knowledge graph, and the learning path and target learning path are obtained based on the course knowledge graph.
[0012] According to another embodiment of the present invention, a personalized learning path dynamic recommendation system based on knowledge graph is provided, including: The interaction layer is used to receive user needs and response results from the backend system; A data receiving layer, which is used to receive data input by users and store the data in a database, wherein the data in the database is used to influence the generation of test papers and determine user information; The database function layer is used to store data models and build course knowledge graphs; The collaborative recommendation algorithm layer is used to determine similar user information and determine the learning path and target learning path.
[0013] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0014] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0015] Through the present invention, since the user information of the user is analyzed individually, the learning path can be dynamically adjusted according to the user's learning progress, etc., thereby solving the problem of low learning path accuracy and achieving the effect of improving the learning path accuracy and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1It is a hardware structure block diagram of a mobile terminal of a method for dynamically recommending personalized learning paths based on a knowledge graph in an embodiment of the present invention; Figure 2 is a flow chart of a method for dynamically recommending personalized learning paths based on a knowledge graph according to an embodiment of the present invention; Figure 3 is a schematic diagram of the principle according to a specific embodiment of the present invention; Figure 4 It is a diagram showing the construction principle of a course knowledge graph according to a specific embodiment of the present invention; Figure 5 is a flow chart of generating a test paper set using a genetic algorithm according to a specific embodiment of the present invention; Figure 6 is a fitness value change diagram according to a specific embodiment of the present invention; Figure 7 is a flow chart of determining similar users based on a collaborative filtering algorithm according to a specific embodiment of the present invention; Figure 8 It is a display diagram of knowledge graph construction according to a specific embodiment of the present invention; Fig. 9 is a flow chart of generating an initial learning path according to a specific embodiment of the present invention; Fig.10 is a structural block diagram of a learning path generation platform according to a specific embodiment of the present invention; Fig.11 It is a structural block diagram of a personalized learning path dynamic recommendation system based on knowledge graph according to an embodiment of the present invention; DETAILED DESCRIPTION Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0017] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0018] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 1 is a hardware structure block diagram of a mobile terminal of a method for dynamically recommending personalized learning paths based on a knowledge graph according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0019] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a personalized learning path dynamic recommendation method based on a knowledge graph in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0020] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0021] In this embodiment, a personalized learning path dynamic recommendation method based on knowledge graph is provided. Figure 2 is a flowchart of a method for dynamically recommending personalized learning paths based on a knowledge graph according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps: Step S201, obtaining user information, wherein the user information includes at least one of first user demand information, first user learning record information, and first user learning test information of a target user, and at least one of second user demand information, second user learning record information, and second user learning test information of a neighboring user; In this embodiment, before planning the user's learning path, the learning habits, learning goals (corresponding to the aforementioned first and second user demand information), test scores (corresponding to the diving first and second user learning test information), course learning results of a single course, learning progress (corresponding to the aforementioned first and second user learning record information) and other information of the target user (i.e., the user who needs to plan the learning path) and neighboring users (i.e., the user who has a similar learning situation to the target user, or has completed the learning goal, or can be used for reference) are first obtained to provide sufficient data support for subsequent processing.
[0022] Step S202, performing similarity calculation on the user information by using a preset first algorithm to obtain similar user information of similar users whose similarity to the user information satisfies a similarity condition, wherein the neighboring users include the similar users; In this embodiment, a collaborative filtering algorithm is used to determine neighboring users who have similar learning habits to the target user, and then the learning path of the target user is generated with reference to the learning path of the neighboring users, thereby quickly providing a learning path for the target user without the need for the target user to re-plan the learning path, greatly improving learning efficiency.
[0023] The first algorithm may be a collaborative filtering algorithm, or other algorithms capable of performing user similarity matching, such as a cosine similarity algorithm, a Pearson similarity algorithm, and the like.
[0024] Step S203, according to the similar user information, obtaining the initial learning path corresponding to the similar user information, determining the initial learning path as the recommended learning path, and then adjusting the recommended learning path based on the user's learning progress to generate a target learning path.
[0025] In this embodiment, after obtaining similar users who are similar to the target user, the learning path of the similar users is adjusted and improved according to the actual conditions such as the target user's learning habits, so as to generate a target learning path that meets the learning characteristics of the target user, so that the user can directly learn according to the generated target learning path, avoiding the problem of inaccurate learning path planning caused by too much information.
[0026] In an optional embodiment, the similarity calculation is performed on the user information by using a preset first algorithm to obtain similar user information of similar users whose similarity to the user information satisfies a similarity condition, wherein the neighboring users include the similar users including: Step S2021, obtaining an item category rating matrix, wherein the item category rating matrix is constructed based on previously obtained historical preference data of a reference user; In this embodiment, a rating matrix may be set according to the historical preference data of neighboring users or other reference users for reference and by item category, and the rating matrix is used for subsequent calculation of user preference similarity.
[0027] Step S2022, based on the item category rating matrix, calculating the similarity between the target user and the neighboring users by a similarity algorithm to obtain a similarity matrix; In this embodiment, a similarity calculation method is used to calculate the similarity between the target user and the reference neighboring users, and then the obtained similarity results are combined into a user similarity matrix, which is a user interest degree matrix; generally, the similarity is calculated using methods such as Jaccard similarity, cosine similarity, Pearson similarity or mixed similarity.
[0028] Among them, the item category rating matrix is divided into two categories, one is the existing reference user's rating of the item, and the other is the predicted target user's rating of the item. The similarity result is obtained based on the degree of match between the latter and the former, so this matrix is necessary.
[0029] Step S2023, solving and calculating the similarity matrix by using a proximity value algorithm to obtain the item interest degree; In this embodiment, by solving the K-nearest neighbor method, the matrix of the user's interest in items is calculated again, thereby obtaining the user's interest in different items and the corresponding items, thereby building a connection between the interest and the items.
[0030] Step S2024, sorting the interest levels of the items to obtain target items that meet the interest level condition; In this embodiment, the interest level values of all recommended items are sorted from high to low according to the interest level, and the top N items are found as recommendation results, thereby determining the items that the user is most interested in, and reversely deducing the user's potential interests and learning habits.
[0031] Step S2025: Filter and screen the neighboring users according to the target item to determine a first neighboring user, and use the first user information of the first neighboring user as the similar user information.
[0032] In this embodiment, after determining the items that the target user is interested in, neighboring users are screened based on these items of interest to select users with similar interests to the target user from the neighboring users, and then the learning path of the user is recommended to the target user, and the corresponding target learning path is generated based on this.
[0033] Specifically, after obtaining information such as the new user's cognitive level, learning method, and learning needs, the collaborative filtering algorithm is used to calculate the user group that is similar to the new user. Finally, the learning path of the user with the highest similarity is selected as the initial learning path and recommended to the target user.
[0034] In an optional embodiment, after determining a recommended learning path according to the similar user information and generating a target learning path based on the recommended learning path, the method further includes: Step S204, obtaining the learning progress information of the target user, wherein the learning progress information is associated with the target learning path; Step S205: performing path adjustment processing on the target learning path based on the learning progress information, the first user learning record information, and the first user learning test information to obtain a first learning path.
[0035] In this embodiment, after the target learning path is determined, the user studies according to the recommended initial target learning path for a period of time, and his historical learning records will be saved in the database. As the learning progresses, the learning content is constantly updated, and the initial target learning path can no longer meet the user's learning needs. Therefore, at this time, the target learning path is dynamically adjusted in real time according to the target user's learning progress and test results, so that the learning path can always fit the user's actual situation, ensure the accuracy of learning path planning, and improve user learning efficiency.
[0036] Specifically, the weighted dynamic path adjustment method was used to extract the historical learning data of the target users and the unit test results of the users from the database, and analyze and calculate them according to the weight ratio to determine whether the knowledge points in the original path were added or deleted.
[0037] For example, the user's learning records and test results are assigned weights, which are divided into three modules: video learning module, text learning module, and test score module. The weight values of each module are assigned as shown in Table 1. , and its total weight is 1. At the same time, score each module according to the learning progress interval according to Table 2, and score according to the user's learning progress and test results. A total value of 100 points means that the learning of the unit knowledge point has been completed and the unit test score is greater than 80 points.
[0038] Table 1 Weight table of each module Table 2 Module learning behavior scoring table Then the deletion or addition of knowledge points is determined based on the relevant weights.
[0039] In an optional embodiment, the performing path adjustment processing on the target learning path based on the learning progress information, the first user learning record information, and the first user learning test information includes: Step S2051, obtaining identification values of knowledge points in the target learning path; Step S2052, calculating the mastery degree of the knowledge point based on the identification assignment, the learning progress information, the learning record information of the first user, and the learning test information of the first user to obtain the knowledge point score; Step S2053, if the score of the knowledge point meets the score condition, temporarily delete the knowledge point, otherwise retain it.
[0040] In this embodiment, each unit knowledge point is mapped with an identifier Assign a value (corresponding to the aforementioned identification amplitude), and the default total score is 100. Indicates the score of each module interval. n is a positive integer from 1 to 8, but n must be constrained to be within the same module. For example, when calculating the video learning module, n can only be 1, 2, and 3. Similarly, when calculating text learning, n can only be 4 and 5. When calculating the test score, n can only be 6, 7, and 8. The values of are the module weights 0.4, 0.3, and 0.3.
[0041] The obtained user data can be used to calculate the score of each knowledge point according to the following formula (1): (Calculated score). If If it is greater than 60, it means that the user has basically mastered the knowledge point and can temporarily discard the knowledge point from the path. Otherwise, continue to stay in the path to achieve the purpose of updating the learning path.
[0042] For example, user A studied the introductory unit. When the video learning time was 71%-100%, the module score was 100. The text learning time was 59 minutes, and the module score was 50. The final unit test score was 85 points, and the test score module score was 100. Then according to the process of formula (1) (0.4 100)+(0.3 50)+(0.3 100) The total score of the knowledge point of the last unit is 85. If the result is greater than 60, it means that user A has preliminarily mastered the knowledge points of the introductory unit and the knowledge point can be temporarily deleted from the knowledge points in the path mapping.
[0043] (Formula 1) In an optional embodiment, the performing path adjustment processing on the target learning path based on the learning progress information, the first user learning record information, and the first user learning test information includes: Step S2054, obtaining knowledge point information; Step S2055, when the target learning path does not include the first knowledge point, based on the learning progress information, the first knowledge point is added to the target learning path to obtain a second learning path; wherein the knowledge point information includes the first knowledge point.
[0044] In this embodiment, the knowledge points in the initial target learning path will not involve the knowledge points of the entire course, so when the path is updated, the unlearned knowledge points will be searched according to the user's learning progress, and the relationship connection between the knowledge points in the knowledge graph will be used to supplement the path and realize the final dynamic adjustment of the path.
[0045] In an optional embodiment, before performing similarity calculation on the user information by using a preset first algorithm to obtain similar user information of similar users whose similarity to the user information satisfies a similarity condition, the method further includes: Step S20201, obtaining test paper constraint conditions, wherein the test paper is used to conduct a learning test on a target user; In this embodiment, when the user is tested on their learning progress, the user can be tested by automatically generating a test paper. The automatic generation of the test paper can be achieved by using a genetic algorithm, and relevant constraints need to be set.
[0046] Specifically, the constraints for the preliminary test paper are set first, including the total score of the test paper, the score of each question, the total difficulty of the test paper, the difficulty of a single question, the genetic generation, and the initial population size.
[0047] In the actual process of test paper composition, each question will be affected by n indicators, such as Total score, Type of topic Difficulty Discrimination and dynamic constraints The difficulty of the test paper, etc., then you can use Indicates that Represents the indicator of the i-th test question.
[0048] Then a test paper has m test questions, and can be used In other words, B is the specific test question and P is the test paper. This achieves the matrix distribution of a test paper, as shown in formula (2): (Formula 2) In order to ensure the scientific rationality and practicality of the test paper, the test paper matrix P needs to meet the following constraints, that is, the total score G of the test paper, as shown in formula (3): (Formula 3) Among them, G represents the total score of a test paper, Indicates the score for each test question.
[0049] Question type score constraint: the ratio of each question to the total score of the test paper, as shown in formula (4): (Formula 4) Among them, S represents the proportion of each question in the total score, and G represents the total score of a test paper. Indicates the type of each test question.
[0050] Test paper difficulty constraint: The overall difficulty of test paper composition affects the quality of test paper and other related issues. The overall difficulty of test paper composition should be calculated by a fixed formula, as shown in formula (5). However, this paper emphasizes that test paper composition needs to obtain user needs, and the overall difficulty of test paper composition is obtained based on user needs, and finally added to the constraints of test paper composition to realize the test paper composition process.
[0051] (Formula 5) Among them, D represents the overall difficulty of a test paper. Indicates the difficulty of each question.
[0052] Discrimination: The purpose of discrimination is to make the score range between candidates wider, so as to more easily know the learning level and learning effect of candidates. If the test contains excellent, average and poor results, it means that the discrimination is high. If only one of them is included, it means that the discrimination of the test paper is low, and the scores are all high or all low. The calculation formula is shown in formula (6): (Formula 6) Among them, DF represents the discrimination of a test paper. Indicates the score of each question. Indicates the discrimination of each question Step S20202, encoding the test questions included in the test paper to obtain the test question codes; In this embodiment, the test questions in the test paper are coded to facilitate the subsequent generation of corresponding test questions directly according to the relevant codes.
[0053] The encoding method may be binary encoding or hexadecimal encoding, which is not limited here.
[0054] For example, using 0 and 1 to form a piece of genetic information, the 0 in the code represents an unselected gene, and the 1 represents a selected gene. Multiple 01s are combined into a genetic information chain. The parent chromosome described in the proposal is Each segment represents a question type, including multiple-choice questions, fill-in-the-blank questions, calculation questions, and short-answer questions. The specific presentation method is as follows: 00101010111101011000-0010110101-00000010100-0001001000.
[0055] It should be noted that the process of problem encoding is to convert the constraints into binary for subsequent genetic algorithm calculations.
[0056] Step S20204, generate an initial test paper group, and calculate the fitness value and iteration number of the offspring of the initial test paper group based on a preset genetic algorithm; when the fitness value and / or iteration number meet the output conditions, output the target test paper after iteration for learning test.
[0057] In this embodiment, the initial test group is then generated according to the genetic algorithm, and the fitness value of the offspring generated is calculated according to the set fitness formula, wherein the fitness formula is shown in Formula 7, which can not only improve the efficiency of finding the optimal solution, but also the function does not need to satisfy factors such as continuity and differentiability: (Formula 7) Among them, the generation of the initial test paper group is determined by determining the spatial distribution range of the optimal solution obtained by genetics based on the constraint conditions after the test questions are encoded.
[0058] Then the fitness value and the maximum number of iterations are determined, and if the conditions are met, the test paper is generated. If not, according to the optimal strategy, the individuals with excellent high fitness values are retained in the offspring and the genetic operation continues. In addition, when the maximum number of iterations is reached, the genetic algorithm is terminated and the results are output.
[0059] According to the designed genetic test-taking method, the test-taking function in the online learning path recommendation system is used to implement the specific test-taking operation, and the results are output through the simulation test-taking experiment. First, the parameter factors of the genetic algorithm are specified, and the optimal offspring are generated through selection, crossover, and mutation operations, with probabilities of 0.5, 0.5, and 0.01 respectively. The condition for terminating the iteration is 100 or the fitness value reaches 118. 10 students are selected to participate in the test-taking. After each study, the test results are tested 10 times to determine whether the test-taking difficulty meets their own needs. The degree of compliance is scored according to 1-10, and whether each test-taking is successful is recorded. The above test-taking results are shown in Table 3: Table 3 Unit test paper statistics table From the analysis in Table 3, we can see that after each person completed 10 test papers, the average satisfaction level was 9.69, and the success rate of paper making was 9.90. In summary, the difficulty of paper making in the experimental test basically meets the difficulty required by a single user, and the paper making results are similar to the expected results. Therefore, the genetic algorithm paper making function based on user needs meets the initial learning requirements.
[0060] In an optional embodiment, before obtaining the user information, the method further includes: Step S20101, obtaining course information; Step S20102, performing graph integration processing on the course information to obtain a course knowledge graph, and the learning path and target learning path are obtained based on the course knowledge graph.
[0061] In this embodiment, before performing learning path processing, it is necessary to first integrate the original data of the course field (corresponding to the aforementioned course information), extract information, represent data, and perform knowledge reasoning (corresponding to the aforementioned graph integration processing) to generate a course knowledge graph, and the subsequent learning path is constructed based on this knowledge graph.
[0062] The following is an explanation using specific examples.
[0063] In the current field of online education, existing technologies have a series of problems. First, learning resources are scattered, making it difficult to form a complete knowledge system. Students may need to browse multiple sources when obtaining information, which lacks systematicness and coherence. Secondly, learning path recommendations lack personalization and cannot meet the learning needs of different students, resulting in learners being pushed content that does not meet their actual needs. Third, the test paper composition algorithm is inefficient and cannot quickly generate test papers that meet user needs, affecting the efficiency of online examinations and assessments. Finally, there is a lack of effective interaction and feedback mechanisms in the learning process, making it difficult to improve students' learning efficiency and learning experience, and there is a lack of interactive and personalized learning support.
[0064] To solve these problems, this paper proposes a dynamic learning path recommendation system based on knowledge graph and collaborative filtering algorithm (i.e., a personalized learning path dynamic recommendation system based on knowledge graph). First, by constructing a course knowledge graph, the system provides students with a complete knowledge system, enabling them to learn in a more organized way. Secondly, by using intelligent test composition and collaborative filtering algorithm, students' learning behaviors and preferences are analyzed, and personalized learning path recommendations are tailored for each student to improve learning efficiency and experience. Finally, an online learning path recommendation system is designed to provide students with personalized and efficient learning path recommendation services, thereby improving learning efficiency and learning experience and better meeting students' learning needs.
[0065] Specifically, the system construction idea mainly includes the following steps.
[0066] Firstly, through the knowledge graph construction method, the original data in the course field is integrated, information is extracted, data is represented and knowledge is inferred to generate a course knowledge graph.
[0067] Secondly, an intelligent test paper generation method based on user needs and genetic algorithms is used to generate test papers that meet user needs through multi-layer questionnaire surveys.
[0068] Next, the user's learning behavior and preferences are analyzed based on the user's collaborative filtering algorithm, personalized learning paths are recommended, and the recommended learning paths are dynamically adjusted according to the user's learning progress and behavior information.
[0069] Finally, an online learning path recommendation system (i.e., a personalized learning path dynamic recommendation system based on knowledge graph) is designed and implemented. The entire system construction idea is based on knowledge graph, combined with intelligent test composition and collaborative filtering algorithm, aiming to provide users with personalized and efficient learning path recommendation services, thereby improving learning efficiency and learning experience.
[0070] The construction of the course knowledge graph includes multiple links, and the core construction steps are as follows: Figure 4 The specific construction results are shown in Figure 8 As shown in the figure, from the early stage of acquiring data and organizing data sets, to the mid-term knowledge extraction, knowledge representation, knowledge disambiguation, knowledge reasoning, and finally data storage, the construction of the course knowledge graph is completed.
[0071] Graph technology is used to process the collected data content related to specific courses and construct a knowledge graph of courses in the field. This method can provide closer entity relationships and more specific path data presentation for subsequent personalized learning path recommendations, thereby improving learning efficiency and learning experience.
[0072] Then, intelligent test papers are compiled based on user needs and genetic algorithms.
[0073] The acquisition of user needs includes two aspects. On the one hand, the first-level questionnaire is to obtain the user's learning methods and needs. The second-level questionnaire is to obtain the user's knowledge reserves and learning goals. After the two-level questionnaire survey, the system will calculate a total score and finally save the score to the database.
[0074] After the user has completed the video course and text, the system will use the user's score as a difficulty condition to constrain the results of the genetic test.
[0075] The dynamic constraint conditions designed in this proposal are different from the previous static constraint conditions. In the process of test paper composition, the user's needs are used as the difficulty constraint conditions of the entire test paper, and this condition and other conditions jointly constrain the test paper composition. The test paper composition difficulty is divided into simple, general, and difficult, and the total score values corresponding to the user's needs are (0-40, 40-70, 70-100). The test paper thus composed can reflect the degree of the user's learning needs.
[0076] The basic process of using genetic algorithm to implement test paper generation is as follows Figure 5 As shown: From the above flowchart, the specific description of the test paper assembly implementation process is as follows: Step 1: Set the constraints for the preliminary test paper, including the total score of the test paper, the score of each question, the total difficulty of the test paper, the difficulty of each question, the genetic generation, and the initial population size.
[0077] In the actual process of test paper composition, each question will be affected by n indicators, such as Total score, Type of topic Difficulty Discrimination and dynamic constraints Test difficulty, etc., then you can use Indicates that represents the index of the i-th test question. Then a test paper has m test questions, and can be In other words, B is the specific test question and P is the test paper. This achieves the matrix distribution of a test paper, as shown in the above formula (2): In order to ensure the scientific rationality and practicality of the test paper composition, the test paper matrix P needs to meet the constraints described below, that is, the total score G of the test paper, as shown in the above formula (3).
[0078] Question type score constraint: The proportion of each question to the total score of the test paper, as shown in the above formula (4). Test paper difficulty constraint: The overall difficulty of test paper composition affects the quality of test paper and other related issues. The overall difficulty of test paper composition should be calculated by a fixed formula, as shown in the above formula (5). However, this paper emphasizes that test paper composition needs to obtain user needs, and the overall difficulty of test paper composition is obtained based on user needs, and finally added to the constraints of test paper composition to realize the test paper composition process.
[0079] Discrimination: The purpose of discrimination is to make the score range between candidates wider, so as to more easily know the learning level and learning effect of candidates. If the test contains excellent, average and poor results, it means that the discrimination is high. If only one of them is included, it means that the discrimination of the test paper is low, and the scores are all high or all low. The calculation formula is shown in the above formula (6): Step 2: Binary encode the test questions.
[0080] A piece of genetic information is composed of 0 and 1. The 0 in the code represents an unselected gene, and the 1 represents a selected gene. Multiple 01s are combined into a genetic information chain. The parent chromosome described in the proposal is Each segment represents a question type, including multiple-choice questions, fill-in-the-blank questions, calculation questions, and short-answer questions. The specific presentation method is as follows: 00101010111101011000-0010110101-00000010100-0001001000.
[0081] Step 3: Generate the initial group (corresponding to the initial test group mentioned above).
[0082] Step 4: Calculate the fitness value of the offspring according to the set fitness formula.
[0083] The fitness function shown in the above formula (7) is designed, which can not only improve the efficiency of finding the optimal solution, but also the function does not need to satisfy factors such as continuity and differentiability.
[0084] Step 5: Determine the fitness value and the maximum number of iterations. If the conditions are met, generate a test paper. If not, according to the optimal strategy, retain the excellent individuals with high fitness values in the offspring and continue the genetic operation. In addition, when the maximum number of iterations is reached, the genetic algorithm ends and the results are output.
[0085] According to the designed genetic test paper composition method, the test paper composition function in the online learning path recommendation system is used to implement the specific test paper composition operation, and the results are output through the simulation test paper composition experiment. First, the parameter factors of the genetic algorithm are specified, and the optimal offspring are generated through selection, crossover, and mutation operations, with probabilities of 0.5, 0.5, and 0.01 respectively. The condition for terminating the iteration is 100 or the fitness value reaches 118. 10 students are selected to participate in the test paper composition. After each study, the test paper composition results are tested 10 times to determine whether the test paper composition difficulty meets their own needs. The degree of compliance is scored according to 1-10, and whether each test paper composition is successful is recorded. The above test paper composition results are shown in Table 3.
[0086] Figure 6 The fitness value change graph is set to 50 generations, the initial population size is 10, and then the user's initial difficulty requirement is obtained and calculated into a difficulty level. The difficulty level includes simple, general, and difficult. The user's required difficulty is general, and it is set as a difficulty parameter in the test set operation. Figure 6 It is known that the fitness value inherited to the 8th generation is the highest, and finally the test results are generated based on the best offspring.
[0087] Then, personalized learning path recommendations are made based on collaborative filtering algorithms.
[0088] Before making personalized learning path recommendations, we first build a user model that includes the user's knowledge reserves, basic data, learning methods, and learning records. This user model provides actual data for learning path recommendations, including user needs, user learning methods, and all historical learning records of the user during the learning process.
[0089] The present invention uses a user-based collaborative filtering algorithm, takes user similarity as the starting point, predicts the target user's score on the item, and calculates the score of all reference users on the item. Finally, a similarity set matching the target user is obtained, and the maximum value is selected after the similarity values are sorted. The user corresponding to the maximum value has the most similar hobbies to the target user, so as to recommend the target user's favorite items to the target user. The algorithm flow chart is shown as follows: Figure 7 As shown in the figure, the specific process of finding similar users using user-based collaborative filtering algorithm is mainly introduced.
[0090] Step 1: Get the historical preference data of the reference user group and set up a rating matrix by item category.
[0091] Step 2: Use similarity calculation method to calculate the similarity between the target user and the reference neighboring users. Generally, similarity is calculated using Jaccard similarity, cosine similarity, Pearson similarity or mixed similarity.
[0092] Step 3: The similarity results obtained form the user similarity matrix, that is, the user interest degree matrix.
[0093] Step 4: Calculate the matrix of user interest in items again by solving the K-nearest neighbor method.
[0094] Step 5: Then sort the interest levels of all recommended items from high to low, and find the top N items as the recommended results.
[0095] After obtaining information about new users such as their cognitive level, learning style, and learning needs, collaborative filtering algorithms are used to calculate similar user groups. Finally, the learning path of the user with the highest similarity is selected as the initial learning path and recommended to the target user. Taking the data structure course as an example, the initial learning path generated for a new user is as follows: Fig. 9 shown.
[0096] After a user has studied for a period of time according to the recommended initial path, his historical learning records will be saved in the database. As the learning progresses, the learning content is constantly updated, and the initial learning path can no longer meet the user's learning needs. Therefore, in order to recommend a more personalized dynamic learning path to users, this paper uses a weighted dynamic adjustment path method to extract the historical learning data of the target user and the user's unit test results from the database, and analyze and calculate according to the weight ratio to determine whether the knowledge points in the original path are added or deleted.
[0097] Assign weights to the user's learning records and test results, which are divided into three modules: video learning module, text learning module, and test score module. Assign weight values to each module as shown in Table 1 above. , and its total weight is 1. At the same time, score each module according to the learning progress interval according to Table 2, and score according to the user's learning progress and test results. A total value of 100 points means that the learning of the unit knowledge point has been completed and the unit test score is greater than 80 points. In order to judge the students' initial mastery of the knowledge point, this paper combines the weighted method to calculate the user's mastery of the knowledge point. , the specific process is as follows: Mapping identifiers to each unit knowledge point Assign a value, the default total score is 100. Indicates the score of each module interval. n is a positive integer from 1 to 8, but n must be constrained to be within the same module. For example, when calculating the video learning module, n can only be 1, 2, and 3. Similarly, when calculating text learning, n can only be 4 and 5. When calculating the test score, n can only be 6, 7, and 8. The values of are the module weights 0.4, 0.3, and 0.3.
[0098] The obtained user data can be used to calculate the score of each knowledge point according to the above formula (1): (Calculated score). If If it is greater than 60, it means that the user has basically mastered the knowledge point and can temporarily discard the knowledge point from the path. Otherwise, it will continue to stay in the path to achieve the purpose of updating the learning path. For example, user A has learned the introductory unit. When the video learning time is 71%-100%, the module score is 100; the text learning time is 59 minutes, and the module score is 50; the final unit test score is 85 points, and the test score module score is 100. Then according to the process of formula (7) (0.4 100)+(0.3 50)+(0.3 100) The total score of the knowledge point of the last unit is 85. If the result is greater than 60, it means that user A has preliminarily mastered the knowledge points of the introductory unit and the knowledge point can be temporarily deleted from the knowledge points in the path mapping.
[0099] In addition, the knowledge points in the initial learning path will not involve the knowledge points of the entire course, so when the path is updated, it will also search for unlearned knowledge points based on the user's learning progress, and use the relationship connections between knowledge points in the knowledge graph to supplement the path and achieve the final dynamic adjustment of the path.
[0100] Finally, design the online course learning path recommendation system The present invention also constructs an online learning path recommendation platform, in which an online answering test function is provided to diagnose the original knowledge reserve of new users, that is, the degree of cognition of the course. For new users, there is no initial data in the platform. In order to avoid the cold start problem, the initial learning path is recommended by calculating the user similarity method. After the new user learns according to the initial path for a period of time, the system will store the user's learning behavior information in a relational database, and then use the weighted method to dynamically adjust the learning path for the user. After each learning record and test result is updated, the system will automatically take the updated data as the basis, and the next recommended learning path will recalculate the recommendation result and dynamically recommend a more suitable path to the user.
[0101] In addition to the front desk providing learning for learners, there is also a back-end management. The main role of the back-end administrator is to optimize the addition, deletion, modification and query of course knowledge points, manage users' personal information and learning information, and manage learning paths. Fig.10 shown.
[0102] ⑴ The interaction layer is the front-end user operation view page and the back-end administrator operation view page in the system described in this article. Its main function is to render the back-end data to the front-end page and dynamically display all data to learners or back-end administrators. The data generated by users' learning courses and the back-end management system can use the browser client to send relevant requests to the server. After receiving the request, the server will return the response result and the corresponding data.
[0103] ⑵ The data model receives, processes and records all the user's behavioral data, including the questionnaire results filled out after the user registers and logs into the system, the course videos and literature content learned in each time period, and the test results after learning. These data will be saved in the relational database MYSQL by the system. The system also saves the user's questionnaire demand results and uses the pre-factor to affect the difficulty of the genetic algorithm test paper.
[0104] ⑶ Database function layer provides some functional components and formulates some functional models for the system. In addition, it is also responsible for associating business functions and databases. In this layer, you can connect to the database and perform related operations, including operations such as adding, deleting, modifying and checking data and specific transactions for failed operations. In this system, the administrator uses the method of building knowledge graphs in the field to build course knowledge graphs, and saves all knowledge point related content and relationships in the graph database NEO4J in sequence. Other course information, user information, learning behavior information, question record and other data are also stored in the MySql relational database.
[0105] ⑷ The collaborative recommendation module is divided into two aspects. On the one hand, the results of the second-level user questionnaire are extracted as the target user's learning habits and learning needs, which influence the collaborative filtering algorithm to calculate the comparison users similar to the target user, and recommend the comparison user's learning path as the initial path to the target user. On the other hand, the system collects the user's historical behavior data and test results as two influencing factors combined with the collaborative filtering algorithm to dynamically adjust the student's personalized learning path.
[0106] It should be noted that the advantages of this solution include: 1. Establish a course knowledge map. The system provides students with a systematic and complete knowledge structure to help them learn in a more organized way. This method helps students understand the relationship between knowledge more clearly, making learning more hierarchical and structured, thereby improving learning outcomes.
[0107] 2. Applying intelligent test composition and collaborative filtering algorithms, the system analyzes students’ learning behaviors and preferences, and recommends unique learning paths for each student. This customized learning plan can improve students’ learning efficiency and experience, ensuring that they can better adapt to their personal learning styles and achieve better academic results.
[0108] 3. Designed an online learning path recommendation system that can optimize learning outcomes and experience, better meet students’ academic needs, and provide students with personalized and efficient learning suggestions.
[0109] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0110] In this embodiment, a personalized learning path dynamic recommendation system based on a knowledge graph is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0111] Fig.11 is a structural block diagram of a personalized learning path dynamic recommendation system based on a knowledge graph according to an embodiment of the present invention. Fig.11 As shown, the system includes: The interaction layer 1001 is used to receive user requirements and response results from the backend system; The data receiving layer 1002 is used to receive the data input by the user and store the data in a database. The data in the database is used to influence the generation of the test paper and determine the user information. The database function layer 1003 is used to store data models and to build a course knowledge graph; The collaborative recommendation algorithm layer 1004 is used to determine similar user information and determine a learning path and a target learning path.
[0112] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0113] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0114] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0115] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0116] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0117] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0118] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0119] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A personalized learning path dynamic recommendation method based on knowledge graph, characterized in that: include: Acquire user information, wherein the user information includes at least one of first user demand information, first user learning record information, and first user learning test information of the target user, and at least one of second user demand information, second user learning record information, and second user learning test information of the neighboring user; Performing similarity calculation on the user information by using a preset first algorithm to obtain similar user information of similar users whose similarity with the user information satisfies a similarity condition, wherein the neighboring users include the similar users; According to the similar user information, an initial learning path corresponding to the similar user information is obtained, and the initial learning path is determined as a recommended learning path, and then the recommended learning path is adjusted based on the user's learning progress and a pre-constructed knowledge graph to generate a target learning path.
2. The method according to claim 1, characterized in that The performing similarity calculation on the user information by using a preset first algorithm to obtain similar user information of similar users whose similarity to the user information satisfies a similarity condition includes: Obtaining an item category rating matrix, wherein the item category rating matrix is constructed based on previously obtained historical preference data of a reference user; Based on the item category rating matrix, similarity between the target user and neighboring users is calculated by a similarity algorithm to obtain a similarity matrix; The similarity matrix is solved and calculated by a proximity value algorithm to obtain the item interest degree; Sorting the interest levels of the items to obtain target items that meet the interest level condition; The neighboring users are filtered and screened according to the target item to determine a first neighboring user, and the first user information of the first neighboring user is used as the similar user information.
3. The method according to claim 1, characterized in that After obtaining the initial learning path corresponding to the similar user information according to the similar user information, determining the initial learning path as the recommended learning path, and adjusting the recommended learning path based on the user's learning progress and the pre-built knowledge graph to generate a target learning path, the method further includes: Acquire learning progress information of the target user, where the learning progress information is associated with the target learning path; The target learning path is adjusted based on the learning progress information, the first user learning record information, and the first user learning test information to obtain a first learning path.
4. The method according to claim 3, characterized in that The performing path adjustment processing on the target learning path based on the learning progress information, the first user learning record information and the first user learning test information includes: Obtaining identification values of knowledge points in the target learning path; Calculate the mastery of the knowledge points based on the identifier assignment, the learning progress information, the first user's learning record information, and the first user's learning test information to obtain a knowledge point score; If the score of the knowledge point meets the score condition, the knowledge point is temporarily deleted, otherwise it is retained.
5. The method according to claim 3, characterized in that: The performing path adjustment processing on the target learning path based on the learning progress information, the first user learning record information and the first user learning test information includes: Get knowledge point information; When the target learning path does not include the first knowledge point, based on the learning progress information, the first knowledge point is added to the target learning path to obtain a second learning path; wherein the knowledge point information includes the first knowledge point.
6. The method according to claim 1, characterized in that Before performing similarity calculation on the user information by using a preset first algorithm to obtain similar user information of similar users whose similarity to the user information satisfies a similarity condition, the method further includes: Obtaining test paper generation constraint conditions, wherein the test paper generation is used to conduct a learning test on a target user; Encoding the test questions contained in the test paper to obtain the test question codes; Generate an initial test paper group, and calculate the fitness value and iteration number of the offspring of the initial test paper group based on a preset genetic algorithm; if the fitness value and / or iteration number meet the output conditions, output the target test paper after iteration for learning test.
7. The method according to claim 1, characterized in that Before obtaining the user information, the method further includes: Get course information; The course information is subjected to graph integration processing to obtain a course knowledge graph, and the learning path and target learning path are obtained based on the course knowledge graph.
8. A personalized learning path dynamic recommendation system based on knowledge graph, characterized in that: include: The interaction layer is used to receive responses from user needs and backend system feedback; A data receiving layer, which is used to receive data input by users and store the data in a database, wherein the data in the database is used to influence the generation of test papers and determine user information; The database function layer is used to store data models and build course knowledge graphs; The collaborative recommendation algorithm layer is used to determine similar user information and determine the learning path and target learning path.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Automatic test paper generation method for network examination
CN106803123A
User multiple interest-based recommendation method
CN108241619A
Laminated combined collaborative filtering recommendation method
CN108874916A
Data processing method and device, medium and electronic equipment
CN109858806A
Article recommendation guiding method and device and computer equipment
CN112381616A
Cited By
College student artificial intelligence course online evaluation method and related equipment
CN119379103A
Knowledge point interaction method and device, electronic equipment and readable storage medium
CN119760194A
Knowledge point interaction method, device, electronic device and readable storage medium
CN119760194B
Personalized learning path planning method and system based on user behaviors, medium and equipment
CN119831789A
Infant personalized learning path planning method and system
CN120258741A
