Extracurricular book recommendation method and device, equipment and medium
By obtaining student information and historical reading records, multiple recall algorithms are used to recall candidate books from the extracurricular book pool, and the scoring model is used to recommend books with a high degree of fit. This solves the problem of being unable to accurately recommend extracurricular books in the existing technology and improves efficiency. Accuracy and personalization of recommendations.
Patent Information
- Application Number
- CN202410713380.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-09-27
AI Technical Summary
Existing technology cannot accurately recommend extracurricular books that are highly suitable for different students. Schools can only recommend general book lists, and parents can only obtain popular book lists in their fields of interest, which cannot meet the personalized reading needs of each student.
By obtaining students' basic information and historical reading records, a preset recall algorithm is used to recall candidate book sets from the extracurricular book pool, and the comprehensive score of candidate books is calculated through a trained scoring model to recommend extracurricular books that meet students' needs. The recall algorithm includes correlation based on book categories, authors, behavioral collaboration, and twin-tower model vectors.
It realizes personalized extracurricular book recommendations for different students, improves the accuracy and fit of recommendations, and enables students to read books more relevant to their interests and needs.
Smart Images

Figure CN118708804A
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet education technology, and in particular to a method, device, equipment and medium for recommending extracurricular books. Background Art
[0002] In order to broaden students' horizons, cultivate their sentiments and develop their intelligence, some schools and parents pay more and more attention to students' reading of extracurricular books.
[0003] At present, some school terminals recommend extracurricular books to student terminals or parent terminals according to the grade of the students for students to read. Some parents also search for popular book lists in the field of interest online according to the interests of their students for their students to read.
[0004] It is understandable that in the above process, schools can only recommend general book lists to students, and parents can only obtain popular book lists in corresponding interest areas, and neither can accurately recommend extracurricular books to students. Summary of the invention
[0005] The present application provides an extracurricular book recommendation method, device, equipment and medium for accurately pushing highly suitable extracurricular books to different students.
[0006] In a first aspect, the present application provides a method for recommending extracurricular books, the method comprising:
[0007] Obtaining student information and target extracurricular books of a target student; the student information includes at least one of basic information, interest areas, and a list of history reading extracurricular books, and the target extracurricular books are input by the target student;
[0008] Based on the student information and the target extracurricular book, at least one candidate extracurricular book set is recalled from the preset extracurricular book pool according to at least one of the preset recall algorithms; the preset recall algorithm is used to calculate the relevance between the target extracurricular book and the candidate extracurricular book, and the preset recall algorithm includes: a relevance recall algorithm based on book categories, a relevance recall algorithm based on authors, a relevance recall algorithm based on behavior collaboration, and a relevance recall algorithm based on a twin-tower model vector;
[0009] For each candidate extracurricular book in the candidate extracurricular book set, the candidate extracurricular book, the student information and the target extracurricular book are input into a trained scoring model to obtain a comprehensive score of the candidate extracurricular book; the comprehensive score is positively correlated with the correlation between the candidate extracurricular book and the target extracurricular book;
[0010] The candidate extracurricular books are recommended to the target student according to the comprehensive score.
[0011] In another possible implementation, the basic information includes the grade of the student; and the step of recalling at least one candidate extracurricular book set from a preset extracurricular book pool according to at least one of the preset recall algorithms based on the student information and the target extracurricular book includes:
[0012] Based on the grade of the target student, the preset extracurricular book pool is obtained from the total resource pool; the total resource pool includes preset extracurricular book pools for different grades, and the preset extracurricular book pool includes the school-designated extracurricular book list corresponding to the grade, the education department-recommended extracurricular book list, and the popular extracurricular book list in different fields;
[0013] Based on the target extracurricular book, at least one of the preset recall algorithms is used to recall at least one of the candidate extracurricular book sets from the preset extracurricular book pool.
[0014] In another possible implementation, based on the target extracurricular book, according to at least one of the preset recall algorithms, recalling at least one candidate extracurricular book set from the preset extracurricular book pool includes:
[0015] Based on the book categories, an inverted index is constructed for the preset extracurricular book pool, so that the extracurricular books under each index are sorted in reverse order according to the number of books that the students have read, so as to retrieve other extracurricular books under the book category to which the target extracurricular book belongs, and recall the extracurricular books whose ranking of the number of books read is greater than the preset ranking, so as to obtain a first candidate extracurricular book set;
[0016] and / or, according to the author of the target extracurricular book, searching for other extracurricular books in the preset extracurricular book pool, and recalling the extracurricular books with the same author, to obtain a second candidate extracurricular book set;
[0017] and / or, based on a preset collaborative filtering algorithm, calculating the similarity between other extracurricular books in the preset extracurricular book pool and the target extracurricular book, and recalling the extracurricular books whose similarity is greater than a preset similarity to obtain a third candidate extracurricular book set;
[0018] And / or, based on the twin tower model vector algorithm, the item vectors of other extracurricular books in the preset extracurricular book pool and the item vector of the target extracurricular book are calculated, and the extracurricular books whose cosine similarity is greater than the preset similarity are recalled to obtain a fourth candidate extracurricular book set.
[0019] In another possible implementation, before inputting the candidate extracurricular book, the student information and the target extracurricular book into a trained scoring model for each candidate extracurricular book in the candidate extracurricular book set to obtain a comprehensive score of the candidate extracurricular book, the method further includes:
[0020] Merging at least one of the first candidate extracurricular book collection, the second candidate extracurricular book collection, the third candidate extracurricular book collection, and the fourth candidate extracurricular book collection to obtain an updated candidate extracurricular book collection; the updated candidate extracurricular book collection includes different extracurricular books;
[0021] For each candidate extracurricular book in the candidate extracurricular book set, the candidate extracurricular book, the student information and the target extracurricular book are input into a trained scoring model to obtain a comprehensive score of the candidate extracurricular book, including:
[0022] For each candidate extracurricular book in the updated candidate extracurricular book set, the candidate extracurricular book, the student information and the target extracurricular book are input into the trained scoring model to obtain a comprehensive score of the candidate extracurricular book.
[0023] In another possible implementation, before acquiring the preset extracurricular book pool from the total resource pool, the method further includes:
[0024] Collect extracurricular book lists for different applicable grades and different interest areas to build the total resource pool;
[0025] Based on the applicable grade, an inverted index is constructed for the total resource pool to obtain at least one of the preset extracurricular book pools, so that the preset extracurricular book pool under each index includes extracurricular books corresponding to the applicable grade.
[0026] In another possible implementation, the method further includes:
[0027] Acquiring history reading behavior information of different students, wherein the history reading behavior information includes history target extracurricular books and history candidate extracurricular books corresponding to the history target extracurricular books;
[0028] For any student, the candidate history extracurricular books whose reading completion rate exceeds the preset value, the target history extracurricular books corresponding to the candidate history extracurricular books, and the student information of the student are taken as positive samples, and the candidate history extracurricular books whose reading completion rate does not exceed the preset value, the target history extracurricular books corresponding to the candidate history extracurricular books, and the student information of the student are taken as negative samples;
[0029] Based on the positive samples and the negative samples, the original model is trained to obtain the scoring model; when the original model is trained, the training goal is to output the comprehensive history score of the candidate extracurricular book when the student information, the target history extracurricular book, and the candidate history extracurricular book are input.
[0030] In another possible implementation, the recommending the candidate extracurricular books to the target student according to the comprehensive score includes:
[0031] Sorting the candidate extracurricular books in descending order of the comprehensive scores to obtain a sorting sequence, and taking the candidate extracurricular books before a preset position in the sorting sequence as candidate extracurricular books to be recommended;
[0032] For any candidate extracurricular book that needs to be recommended, if the candidate extracurricular book meets at least one target recommendation reason among the preset recommendation reasons, the target recommendation reason will be displayed when recommending the candidate extracurricular book to the target student; the preset recommendation reasons include: popular recommendations in the field, read by friends, same author, must-read extracurricular books, and new work recommendations.
[0033] In a second aspect, the present application provides an extracurricular book recommendation device, the device comprising:
[0034] An acquisition module is used to acquire student information and target extracurricular books of a target student; the student information includes at least one of basic information, interest areas, and a list of history reading extracurricular books, and the target extracurricular books are input by the target student;
[0035] A recall module, for recalling at least one candidate extracurricular book set from a preset extracurricular book pool based on the student information and the target extracurricular book according to at least one of the preset recall algorithms; the preset recall algorithm is used to calculate the relevance between the target extracurricular book and the candidate extracurricular book, and the preset recall algorithm includes: a relevance recall algorithm based on book categories, a relevance recall algorithm based on authors, a relevance recall algorithm based on behavior collaboration, and a relevance recall algorithm based on a twin-tower model vector;
[0036] A scoring module, for inputting the candidate extracurricular book, the student information and the target extracurricular book into a trained scoring model for each candidate extracurricular book in the candidate extracurricular book set, so as to obtain a comprehensive score of the candidate extracurricular book; the comprehensive score is positively correlated with the correlation between the candidate extracurricular book and the target extracurricular book;
[0037] A recommendation module is used to recommend the candidate extracurricular books to the target students according to the comprehensive scores.
[0038] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0039] The memory stores computer-executable instructions;
[0040] The processor executes the computer-executable instructions stored in the memory to implement the method as described in any one of the first aspects.
[0041] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described in any one of the first aspects.
[0042] The present application provides a method, device, equipment and medium for recommending extracurricular books. The method of the present application is executed by an electronic device. For any target student, the electronic device first obtains the student information and target extracurricular books of the target student, and based on the student information and the target extracurricular books, recalls at least one candidate extracurricular book set from the preset extracurricular book pool according to at least one of the preset recall algorithms. Secondly, the electronic device scores each candidate extracurricular book in at least one candidate extracurricular book set through a trained scoring model to obtain a comprehensive score of the candidate extracurricular book. Finally, the electronic device recommends the candidate extracurricular book to the target student according to the comprehensive score. In the method of the present application, the electronic device determines the candidate extracurricular book based on the student information of the target student and the target extracurricular book of the target student, and further scores the candidate extracurricular book to recommend the target student with more relevant extracurricular books. Through the method of the present application, the electronic device can recommend extracurricular books with higher relevance to any target student, thereby being able to recommend extracurricular books with higher fit for different students, effectively improving the accuracy of push. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0044] Figure 1 A schematic diagram of an application scenario of an extracurricular book recommendation method provided in an embodiment of the present application;
[0045] Figure 2 A flowchart of a method for recommending extracurricular books provided in an embodiment of the present application Figure 1 ;
[0046] Figure 3a A flowchart of a method for recommending extracurricular books provided in an embodiment of the present application Figure 2 ;
[0047] Figure 3b A schematic diagram of a process for obtaining a candidate extracurricular book collection provided in an embodiment of the present application;
[0048] Figure 4 Schematic diagram 3 of a flow chart of an extracurricular book recommendation method provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of the principle of an electronic device for recommending extracurricular books provided in an embodiment of the present application;
[0050] Figure 6 A schematic diagram of the structure of an extracurricular book recommendation device provided in an embodiment of the present application;
[0051] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0052] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0053] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0054] In the teaching process, in order to broaden students' horizons, cultivate their sentiments, and develop their intelligence, more and more schools and parents have begun to pay attention to students' extracurricular reading reserves. In order to guide students to better carry out extracurricular reading and give full play to its positive influence, schools will regularly push extracurricular books to students and cooperate with parents to help students increase their extracurricular reading reserves.
[0055] At present, schools usually provide different extracurricular book lists according to different grades, and push the corresponding extracurricular book lists to the corresponding student terminals or parent terminals through school terminals for students to read. In actual applications, some parents will also search for popular book lists in the corresponding interest areas through parent terminals according to the interests of their students for their students to read.
[0056] For the above scenario, different students in the same grade have different interests and hobbies. It is impossible to push a list of extracurricular books to students uniformly according to their grade, and push extracurricular books with high accuracy and high fit to each student. In addition, according to the interests and hobbies of students, push popular book lists in the corresponding interest areas, and sometimes the popular book lists are not what students need, so it is impossible to accurately push extracurricular books with high accuracy and high fit to each student. Therefore, there is an urgent need for an extracurricular book recommendation method that can accurately recommend extracurricular books with high fit to students.
[0057] The present application provides a method, device, equipment and medium for recommending extracurricular books. The method of the present application is executed by any electronic device. For any target student, the electronic device obtains the student information and target extracurricular books of the target student, and based on the student information and the target extracurricular books, recalls at least one candidate extracurricular book set according to at least one of the preset recall algorithms. Furthermore, for the candidate extracurricular books in at least one candidate extracurricular book set, they are scored by a trained scoring model to obtain their corresponding comprehensive scores. Finally, based on the comprehensive score, the candidate extracurricular books are recommended to the target student. Through the method of the present application, the electronic device can recommend to the target student extracurricular books that are highly relevant and highly compatible with the target extracurricular books he needs, while achieving personalized recommendations and effectively improving the accuracy of recommendations.
[0058] It is understandable that the electronic device can be any form of electronic device, for example, a mobile phone, a tablet, a computer, a learning machine, etc. In this application, no limitation is imposed on the form of the electronic device.
[0059] It can be understood that the method of the present application is applied to the scenario of intelligent recommendation of extracurricular books. Figure 1 A schematic diagram of an application scenario of an extracurricular book recommendation method provided in an embodiment of the present application. Figure 1 As shown, the method of the present application is applied to a student terminal, which may be a learning machine. Figure 1 As shown, the school terminal provides a storage service for storing the student information of each student, and the student terminal interacts with the school terminal to obtain the student information of any target student x through the school terminal. In practical applications, the student information can also be input by the student terminal by the student. In this embodiment, the student inputs the target extracurricular book into the student terminal by himself, specifically, by keyboard input or voice input, which is not limited in this embodiment.
[0060] After receiving the student information and the target extracurricular book, the student terminal recalls at least one candidate extracurricular book set from the preset extracurricular book pool y based on the student information and the target extracurricular book according to at least one of the preset recall algorithms. Optionally, in the scenario of this embodiment, the total resource pool is stored in the cloud, and the total resource pool includes multiple preset extracurricular book pools, each of which includes extracurricular books corresponding to the same grade. The student terminal recalls at least one candidate extracurricular book set from the preset extracurricular book pool y in the total resource pool by interacting with the cloud.
[0061] Furthermore, the student terminal scores at least one candidate extracurricular book in the candidate extracurricular book set through the scoring model to obtain its corresponding comprehensive score. Finally, the student terminal recommends the candidate extracurricular book to the target student x according to the comprehensive score.
[0062] Optionally, in actual applications, the school terminal may also interact with the cloud to send information about new extracurricular books to the cloud when there are new extracurricular books for the corresponding grade, so that the cloud can update the total resource pool.
[0063] Optionally, in actual applications, the above scenario may also include a teacher terminal, and the teacher terminal interacts with the student terminal to obtain the student's reading situation, so that the teacher can fully understand the student's reading situation.
[0064] It is worth noting that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0065] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0066] Figure 2 A flowchart of a method for recommending extracurricular books provided in an embodiment of the present application Figure 1 The following combination Figure 2 , the method of this embodiment is described in detail. Figure 2 As shown, the method of this embodiment includes the following contents:
[0067] S201, obtaining student information and target extracurricular books of target students.
[0068] The student information includes at least one of basic information, interest areas, and a history reading extracurricular book list, and the target extracurricular book is input by the target student.
[0069] Specifically, the basic information includes information such as the target student's grade, age, and gender. It is understandable that the target extracurricular book is an extracurricular book that the target student needs to read, and is input into the electronic device by the target student himself. Specifically, the target student inputs the electronic device through voice, or inputs the electronic device through a keyboard, which is not limited in this embodiment.
[0070] In this embodiment, the electronic device interacts with the school terminal bound to the target student, and obtains the student information of the target student fed back by the school terminal by sending a request instruction to the school terminal. In practical applications, the student information may also be input by the target student himself, which is not limited in this embodiment.
[0071] It is understandable that the electronic device is bound to the target student, and in practical applications, the request instruction may include the student ID of the target student. Upon receiving the request instruction, the school terminal identifies the basic information of the target student to quickly obtain the student information of the target student through the storage service, and feeds back the student information to the target student.
[0072] S202 , based on the student information and the target extracurricular books, at least one candidate extracurricular book set is recalled from a preset extracurricular book pool according to at least one of the preset recall algorithms.
[0073] Among them, the preset recall algorithm is used to calculate the relevance between the target extracurricular book and the candidate extracurricular books. The preset recall algorithms include: a relevance recall algorithm based on book categories, a relevance recall algorithm based on authors, a relevance recall algorithm based on behavioral collaboration, and a relevance recall algorithm based on a double-tower model vector.
[0074] It can be understood that the candidate extracurricular book set includes at least one candidate extracurricular book, and the candidate extracurricular book is obtained based on the personalized preference of the target student and is related to the content of the target extracurricular book.
[0075] In this embodiment, the electronic device recalls a corresponding number of candidate extracurricular book collections from the corresponding preset extracurricular book pool based on each of the preset recall algorithms. It can be understood that the corresponding number is the number of the preset recall algorithm. In actual applications, the electronic device can also recall a corresponding number of candidate extracurricular book collections based on any one, any two, etc. of the preset recall algorithms, which is not limited in this embodiment.
[0076] In this embodiment, the preset extracurricular book pool is stored in the cloud, and the electronic device obtains the preset extracurricular book pool by interacting with the cloud, and recalls candidate extracurricular book sets from the preset extracurricular book pool through a preset recall algorithm.
[0077] Optionally, in actual applications, the cloud stores multiple preset extracurricular book pools, each of which corresponds to a grade and contains extracurricular books corresponding to students in that grade. These extracurricular books can be extracurricular books designated by school teachers or recommended in the syllabus of the education department, which is not limited in this embodiment.
[0078] Optionally, in actual applications, the preset extracurricular book pool may further include multiple sub-extracurricular book pools, each of which corresponds to an interest field and includes popular extracurricular books in the corresponding interest field.
[0079] On this basis, the electronic device determines the preset extracurricular book pool based on the student information of the target students, first according to the grade they are currently attending, then determines the sub-preset extracurricular book pool based on their interest areas, and finally recalls candidate extracurricular book sets from the sub-preset extracurricular book pool based on the preset recall algorithm.
[0080] It can be understood that the preset recall algorithm is used to calculate the relevance between the target extracurricular book and the candidate extracurricular books. For any preset recall algorithm, the electronic device is configured with a preset number for recalling a preset number of candidate extracurricular books that meet preset conditions according to the preset recall algorithm to obtain a candidate extracurricular book set. The preset condition is used to indicate that the relevance between the candidate extracurricular book and the target extracurricular book is greater than a preset value.
[0081] S203, for each candidate extracurricular book in the candidate extracurricular book set, the candidate extracurricular book, student information and target extracurricular book are input into the trained scoring model to obtain a comprehensive score of the candidate extracurricular book.
[0082] Among them, the comprehensive score is positively correlated with the correlation between the candidate extracurricular books and the target extracurricular books.
[0083] Specifically, in this embodiment, after the electronic device obtains the candidate extracurricular book set, for each candidate extracurricular book in the candidate extracurricular book set, a comprehensive score of the candidate extracurricular book is obtained by using a trained scoring model.
[0084] In this embodiment, when training the scoring model, candidate extracurricular books, student information and target extracurricular books are input, and the comprehensive scores corresponding to the candidate extracurricular books are output as the training target.
[0085] It can be understood that the comprehensive score is used to indicate the relevance of the candidate extracurricular book to the target extracurricular book. The higher the relevance, the higher the comprehensive score, and the more worthy of recommendation.
[0086] S204, recommending candidate extracurricular books to target students according to the comprehensive scores.
[0087] In this embodiment, the electronic device preferentially recommends candidate extracurricular books with high comprehensive scores to the target students. Specifically, the electronic device sorts the candidate extracurricular books in descending order of comprehensive scores and recommends the candidate extracurricular books according to the sorting.
[0088] In practical applications, the electronic device can also obtain the target student's expected recommendation time period and recommend candidate extracurricular books to the target student during the expected recommendation time period. It is understandable that the expected recommendation time period can be input into the electronic device by the target student or predicted by the electronic device based on the target student's historical usage habits.
[0089] It is understandable that the candidate extracurricular books in this embodiment are the titles of corresponding books, and the electronic device obtains the titles of books from the preset extracurricular book pool. After determining to recommend the candidate extracurricular books to the target students, the electronic device can obtain the content of the candidate extracurricular books through the digital resource library based on the candidate extracurricular books and provide them to the target students.
[0090] The extracurricular book recommendation method provided in this embodiment is performed by an electronic device. The electronic device first obtains the student information and target extracurricular books of the target student, and based on the student information and the target extracurricular book, recalls at least one candidate extracurricular book set from the preset extracurricular book pool according to at least one of the preset recall algorithms. Secondly, the electronic device obtains the corresponding comprehensive score of each candidate extracurricular book in the candidate extracurricular book set through the scoring model. Finally, the electronic device recommends the candidate extracurricular books in the candidate extracurricular book set to the target student based on the comprehensive score of the candidate extracurricular book.
[0091] In the method of this embodiment, the electronic device combines the student information of the target student and the target extracurricular book, and specifically recalls the candidate extracurricular book set from the preset extracurricular book pool in multiple ways, and recommends the candidate extracurricular book to the target student according to the relevance between the candidate extracurricular book and the target extracurricular book. The method of this embodiment is conducive to achieving accurate recommendation based on the student information of the target student and the target extracurricular book to promote the reading interest of the target student, and on the other hand, the multi-way recall improves the comprehensiveness of the candidate extracurricular books.
[0092] Figure 3a A flowchart of a method for recommending extracurricular books provided in an embodiment of the present application Figure 2 The following combination Figure 3a , the method of this embodiment is described in detail. Specifically, based on the above method embodiment, this embodiment describes in detail the process of recalling at least one candidate extracurricular book collection. Figure 3a As shown, the method of this embodiment includes the following contents:
[0093] S301, collect extracurricular book lists for different applicable grades and different interest areas, and build a total resource pool.
[0094] In this embodiment, the electronic device collects extracurricular book lists for different applicable grades and different interest areas, constructs a total resource pool, and stores the total resource pool in the cloud.
[0095] In this embodiment, the total resource pool includes extracurricular book lists for each applicable grade and each interest field, wherein each applicable grade includes early childhood, each grade of primary school, each grade of junior high school, and each grade of high school. Specifically, the total resource pool includes the extracurricular book lists specified by school teachers corresponding to the aforementioned applicable grades, and the extracurricular book lists recommended in the syllabus of the current regional education department. In this embodiment, the total resource pool also includes popular extracurricular book lists under various interest fields, etc.
[0096] S302, based on the applicable grade, construct an inverted index for the total resource pool to obtain at least one preset extracurricular book pool, so that the preset extracurricular book pool under each index includes extracurricular books corresponding to the applicable grade.
[0097] S303, based on the grade of the target student, obtain a preset extracurricular book pool from the total resource pool.
[0098] Among them, the total resource pool includes preset extracurricular book pools for different grades. The preset extracurricular book pools include the school-designated extracurricular book lists corresponding to the grade, the extracurricular book lists recommended by the education department, and popular extracurricular book lists in different fields.
[0099] In this embodiment, the electronic device constructs an inverted index for the total resource pool based on the applicable grades of the extracurricular books in the total resource pool, with "applicable grade" as the primary key and the preset extracurricular book pool corresponding to each applicable grade as the value Value. It can be understood that the preset extracurricular book pool includes all extracurricular books corresponding to the applicable grade.
[0100] On this basis, when the electronic device obtains the grade of the target student, it can return the preset extracurricular book pool corresponding to the grade based on the total resource pool.
[0101] Optionally, in actual applications, the electronic device can further construct an inverted index for each preset extracurricular book pool, with "interest field" as the primary key and the sub-preset extracurricular book pool corresponding to each interest field as the value, so that each sub-preset extracurricular book pool includes all extracurricular books in the current applicable grade and current interest field.
[0102] On this basis, when the electronic device obtains the grade and interest field of the target student, it can obtain the corresponding preset extracurricular book pool based on the grade, and further obtain the corresponding sub-preset extracurricular book pool based on the interest field. The electronic device is conducive to accurately obtaining candidate extracurricular books for recommendation to the target student based on the preset extracurricular book pool and the sub-preset extracurricular book pool.
[0103] S304, construct an inverted index for the preset extracurricular book pool based on the book category, so that the extracurricular books under each index are sorted in reverse order according to the number of times the students have read them, so as to retrieve other extracurricular books under the book category to which the target extracurricular book belongs, and recall the extracurricular books whose reading number ranking is greater than the preset ranking, to obtain the first candidate extracurricular book set.
[0104] S305, searching for other extracurricular books in a preset extracurricular book pool according to the author of the target extracurricular book, and recalling the extracurricular books with the same author to obtain a second candidate extracurricular book set.
[0105] S306, based on a preset collaborative filtering algorithm, calculating the similarity between other extracurricular books in the preset extracurricular book pool and the target extracurricular book, and recalling the extracurricular books with similarity greater than the preset similarity to obtain a third candidate extracurricular book set.
[0106] S307, based on the double tower model vector algorithm, calculate the item vectors of other extracurricular books in the preset extracurricular book pool and the item vector of the target extracurricular book, and recall the extracurricular books whose cosine similarity is greater than the preset similarity to obtain a fourth candidate extracurricular book set.
[0107] Figure 3b A schematic diagram of a process for obtaining a candidate extracurricular book collection provided in an embodiment of the present application is shown in FIG. Figure 3b As shown, in this embodiment, the electronic device performs multi-way recall through multiple preset recall algorithms to obtain multiple candidate extracurricular book sets from the preset extracurricular book pool to cover the relevance as completely as possible. Among them, the preset recall algorithm is used to calculate the relevance between the target extracurricular book and the candidate extracurricular book, including a relevance recall algorithm based on book categories, a relevance recall algorithm based on authors, a relevance recall algorithm based on behavioral collaboration, and a relevance recall algorithm based on a double tower model vector.
[0108] Specifically, when the electronic device recalls the candidate extracurricular book collection from the preset extracurricular book pool through the relevance recall algorithm based on book categories, it first performs a reverse index on the preset extracurricular book pool based on the book categories of the extracurricular books in the preset extracurricular book pool, and makes the extracurricular books under each index in reverse order according to the number of times the students have read them. On this basis, when the electronic device obtains the target extracurricular book, it searches for other extracurricular books under the corresponding index, takes the extracurricular books with a reading number ranking greater than the preset ranking as candidate extracurricular books, and returns the candidate extracurricular books to obtain the candidate extracurricular book collection.
[0109] In this embodiment, it is considered that books published by the same author have correlation, therefore, in this embodiment, the electronic device is configured to obtain a candidate extracurricular book set based on the author correlation recall algorithm. Specifically, when the electronic device recalls the candidate extracurricular book set from the preset extracurricular book pool through the author correlation recall algorithm, the electronic device retrieves the extracurricular books with the same author as the target extracurricular book in the preset extracurricular book pool as the candidate extracurricular books, and obtains the candidate extracurricular book set.
[0110] In this embodiment, the electronic device uses the ItemCF collaborative filtering algorithm to recall candidate extracurricular book sets from a preset extracurricular book pool through a correlation recall algorithm based on behavior collaboration. Specifically, in the model training stage, the electronic device uses the historical data of the target student's extracurricular books that have been read as a training set to train an ItemCF model.
[0111] In this embodiment, cosine similarity is used to calculate similarity, as shown in the following formula: i represents the set of students who have read extracurricular book i, U j represents the set of students who have read extracurricular book j. In the following formula, the numerator is U i and U j is used to represent the number of students who read extracurricular book i and extracurricular book j at the same time. The denominator is the square root of the product of the number of students who read the two extracurricular books respectively.
[0112]
[0113] It is understandable that if the number of students who appear in two extracurricular books together is greater, it means that the similarity between the two extracurricular books is higher. Considering that if the reading number of an extracurricular book is high, the co-occurrence number will also be high, which will cause the problem that all extracurricular books are similar to the popular extracurricular books. Therefore, in this embodiment, a heat penalty is applied to the denominator.
[0114] The electronic device calculates the similarity between each extracurricular book and the target extracurricular book by using the above formula, and takes the extracurricular books with similarity greater than the preset similarity as candidate extracurricular books, thereby obtaining a candidate extracurricular book set.
[0115] In practical applications, the electronic device may also use other collaborative filtering algorithms to perform recall processing, which is not limited in this embodiment.
[0116] In this embodiment, considering that the traditional ItemCF calculates similarity based on the co-occurrence relationship between items, the more item behaviors, the more items will co-occur, and thus get more exposure, that is, the Matthew effect or long tail effect commonly found in recommendation systems. Therefore, in this embodiment, a vector algorithm based on the twin tower model is also provided for recall. In this embodiment, the I2I twin towers are used to more fully train long-tail items through data enhancement, thereby improving the model effect.
[0117] Specifically, the above algorithm is divided into two stages: training and retrieval. During training, for the training data set, items are selected from the sequence of students' reading of extracurricular books as positive samples. For example, ABCDE represents the sequence of students' reading of extracurricular books, and is sorted according to the time of reading. Set the sliding window session, and take all pairs in the session as positive samples. Assume that the session window = 3, so (A, B), (B, C), (A, C), (B, D), (C, D), (D, E), (C, E) these adjacent item pairs are used as positive samples. Batch negative sampling is used as negative samples.
[0118] In terms of feature engineering, the features used to characterize extracurricular books include: extracurricular book ID, extracurricular book name, primary category, secondary category, and full text of the introduction. For the name and full text of the introduction, the open source pre-trained Bert model is used to obtain sentence vectors as features.
[0119] In terms of model structure, in the left tower structure, the extracurricular book features are input, the id type features are converted into vectors and concatenated with the text word vectors, and the compressed representation vector x1 is obtained through the fully connected layer (MLP1). The right tower structure is similar to the left tower, in which the fully connected layer (MLP2) shares parameters with the fully connected layer (MLP1) of the left tower to obtain the compressed representation vector x2. Finally, x1 and x2 are input into the cross entropy loss function.
[0120] In the retrieval stage, when the features of each extracurricular book are input, the item vector can be inferred and the vector index can be constructed. The ANN retrieval tool (such as faiss) is called. The item vector of the "target extracurricular book" is input, and the extracurricular books with cosine similarity greater than the preset similarity are retrieved as candidate extracurricular books, and the candidate extracurricular book set is obtained.
[0121] S308, merging the first candidate extracurricular book collection, the second candidate extracurricular book collection, the third candidate extracurricular book collection and the fourth candidate extracurricular book collection to obtain an updated candidate extracurricular book collection; the updated candidate extracurricular book collection includes different extracurricular books.
[0122] It is understandable that in the multiple candidate extracurricular book collections obtained by the multi-way recall algorithm, the same extracurricular book may exist, that is, the same candidate extracurricular book exists in at least two candidate extracurricular book collections. Therefore, in this embodiment, when the electronic device obtains at least one candidate extracurricular book collection, it merges the at least one candidate extracurricular book collection to obtain an updated candidate extracurricular book collection including different extracurricular books.
[0123] In the method provided in this embodiment, when the electronic device obtains the student information and target extracurricular books of the target student, it can obtain the preset extracurricular book pool according to the grade of the target student. On the one hand, it quickly and effectively narrows the search scope, which is conducive to improving the recall efficiency and recommendation efficiency. On the other hand, it ensures that the final recommended candidate extracurricular books are suitable for the target student, which is conducive to accurately recommending extracurricular books to the target student. Further, the electronic device uses a variety of preset recall algorithms to perform multi-channel recall of the preset extracurricular book pool, thereby increasing the comprehensiveness of the candidate extracurricular books, which is conducive to accurately recommending extracurricular books to the target student.
[0124] Figure 4 A flowchart diagram of a method for recommending extracurricular books provided in the embodiment of the present application is shown in FIG. Figure 4 , the method of this embodiment is described in detail. Specifically, based on the above method embodiment, this embodiment describes in detail the process of recommending candidate extracurricular books. Figure 4 As shown, the method of this embodiment includes the following contents:
[0125] S401, obtaining historical reading behavior information of different students.
[0126] Specifically, the history reading behavior information includes history target extracurricular books and history candidate extracurricular books corresponding to the history target extracurricular books.
[0127] S402, for any student, the candidate history extracurricular books whose reading completion rate exceeds the preset value, the target history extracurricular books corresponding to the candidate history extracurricular books, and the student's student information are taken as positive samples, and the candidate history extracurricular books whose reading completion rate does not exceed the preset value, the target history extracurricular books corresponding to the candidate history extracurricular books, and the student's student information are taken as negative samples.
[0128] S403: Based on the positive samples and the negative samples, the original model is trained to obtain a scoring model.
[0129] Among them, when the original model is trained, the training goal is to output the comprehensive history score of the candidate extracurricular books when inputting student information, history target extracurricular books, and history candidate extracurricular books.
[0130] S404, for each candidate extracurricular book in the updated candidate extracurricular book set, the candidate extracurricular book, the student information and the target extracurricular book are input into the trained scoring model to obtain a comprehensive score of the candidate extracurricular book.
[0131] In this embodiment, the original model includes a feature layer, a cross network layer, and a target network layer, wherein the feature layer includes student features, target extracurricular book features, and candidate extracurricular book features, and the student features are obtained based on the student information of the target student, and the target extracurricular book features include name, category, introduction, etc., and the candidate extracurricular book features include name, category, introduction, etc. The cross network layer is used to cross the student features with the candidate extracurricular book features, and through multiple nonlinear fully connected layers, learn to characterize the personalized interest preferences of students. The cross network layer is also used to cross the target extracurricular book features with the candidate extracurricular book features, and through multiple nonlinear fully connected layers, learn to characterize the correlation between the candidate results and the target extracurricular books. The target network layer is used to map the vector after the student features are crossed with the candidate extracurricular book features to obtain a gating weight, which is used to adjust the personalized importance of the recommendation results. The gating weight is dot-producted with the correlation vector and then passes through a nonlinear fully connected layer, and finally calculates the value of the loss function.
[0132] In this embodiment, when training the original model, for any student, the history candidate extracurricular books whose reading completion rate exceeds the preset value, the history target extracurricular books corresponding to the history candidate extracurricular books, and the student information of the student are used as positive samples, and the history candidate extracurricular books whose reading completion rate does not exceed the preset value, the history target extracurricular books corresponding to the history candidate extracurricular books, and the student information of the student are used as negative samples. Based on the positive samples and the negative samples, training is performed to obtain a trained scoring model.
[0133] On this basis, after inputting the student information of the target students, the target extracurricular books and the candidate extracurricular books into the scoring model, the electronic device can obtain the comprehensive score of the candidate extracurricular books.
[0134] S405 , sorting the candidate extracurricular books in descending order of comprehensive scores to obtain a sorting sequence, and taking the candidate extracurricular books before a preset position in the sorting sequence as candidate extracurricular books to be recommended.
[0135] Specifically, in this embodiment, the electronic device is configured with a preset comprehensive score, and the electronic device sorts each candidate extracurricular book according to the comprehensive score, and determines a preset position according to the preset comprehensive score, and takes the candidate extracurricular book before the preset position in the sorting sequence as the candidate extracurricular book to be recommended. It is understandable that the comprehensive score of the candidate extracurricular book at the preset position is less than the preset comprehensive score.
[0136] S406, for any candidate extracurricular book that needs to be recommended, if the candidate extracurricular book meets at least one target recommendation reason among the preset recommendation reasons, the target recommendation reason is displayed when the candidate extracurricular book is recommended to the target student.
[0137] Among them, the preset recommendation reasons include: popular recommendations in the field, books being read by friends, same author, must-read extracurricular books, and new work recommendations.
[0138] It is understandable that the candidate extracurricular books are recalled from the preset extracurricular book pool based on the preset recall algorithm, and meet at least one of the preset recommendation reasons mentioned above. Therefore, in this embodiment, when the electronic device recommends the candidate extracurricular books to the target students, it first confirms that the candidate extracurricular books meet at least one target recommendation reason, and simultaneously displays the target recommendation reason to the target students.
[0139] In the method provided in this embodiment, for the combined candidate extracurricular book set, the electronic device further scores the candidate extracurricular books contained therein through the scoring model to obtain a comprehensive score for each candidate extracurricular book, and selects the candidate extracurricular books with a comprehensive score ranking higher than the preset ranking as the candidate extracurricular books to be recommended, thereby ensuring a high degree of fit between the recommended extracurricular books and the target students. In addition, when the electronic device recommends the candidate extracurricular books to be recommended to the target students, it simultaneously displays the target recommendation reasons, which is conducive to the target students screening the extracurricular books they need to read, and provides convenience for the target students to read efficiently.
[0140] Based on the embodiments of the present application, when any student inputs a recommendation request including a target extracurricular book into an electronic device, the electronic device can recommend to the student extracurricular books that are relevant to the target extracurricular book required by the student, the student's basic information, etc., and have a high degree of fit.
[0141] Specifically, Figure 5 A schematic diagram of the principle of an electronic device for recommending extracurricular books provided in an embodiment of the present application, such as Figure 5 As shown, the recommendation request may also include the student's student information. When the electronic device obtains the recommendation request, it first determines the preset extracurricular book pool corresponding to the student based on the student information, and based on the student information and the target extracurricular book, recalls the first candidate extracurricular book set from the corresponding preset extracurricular book pool according to the relevance recall algorithm based on book categories, recalls the second candidate extracurricular book set from the corresponding preset extracurricular book pool according to the relevance recall algorithm based on authors, recalls the third candidate extracurricular book set from the corresponding preset extracurricular book pool according to the relevance recall algorithm based on behavior collaboration, and recalls the fourth candidate extracurricular book set from the corresponding preset extracurricular book pool according to the relevance recall algorithm of the double tower model vector.
[0142] The electronic device is configured to determine a unique preset extracurricular book pool according to the student information. Specifically, the unique preset extracurricular book pool is determined from the total resource pool according to the grade of the student in the student information. The total resource pool includes preset extracurricular book pools corresponding to different applicable grades, and the preset extracurricular book pool includes extracurricular books applicable to the current grade.
[0143] Secondly, the electronic device combines the first candidate extracurricular book collection, the second candidate extracurricular book collection, the third candidate extracurricular book collection and the fourth candidate extracurricular book collection to obtain an updated candidate extracurricular book collection, and the updated candidate extracurricular book collection includes at least one candidate extracurricular book. For each candidate extracurricular book, the electronic device further inputs the candidate extracurricular book, the student information of the current student and the target extracurricular book into the trained scoring model to obtain a comprehensive score of the candidate extracurricular book.
[0144] Among them, the scoring model is trained based on the history reading information of different students. Specifically, during training, the history candidate extracurricular books whose reading completion rate exceeds the preset value, the history target extracurricular books corresponding to the history candidate extracurricular books, and the student information of the students are used as positive samples, and the history candidate extracurricular books whose reading completion rate does not exceed the preset value, the history target extracurricular books corresponding to the history candidate extracurricular books, and the student information of the students are used as negative samples. Based on the positive samples and negative samples, the original model is trained so that when the student information, the history target extracurricular books, and the history candidate extracurricular books are input as input, the historical comprehensive score of the candidate extracurricular books is output.
[0145] Furthermore, the electronic device sorts the candidate extracurricular books in descending order of comprehensive scores to obtain a sorting sequence, determines a preset position of the sorting sequence according to the preset comprehensive score, and takes the candidate extracurricular books before the preset position as candidate extracurricular books to be recommended. Finally, the candidate extracurricular books to be recommended are recommended to the current student, and the preset recommendation reasons that the corresponding candidate extracurricular books meet are simultaneously displayed.
[0146] The above embodiment introduces an extracurricular book recommendation method from the perspective of method flow, and the following embodiment introduces an extracurricular book recommendation device from the perspective of a virtual module or a virtual unit. Please refer to the following embodiment for details.
[0147] The present application embodiment provides an extracurricular book recommendation device, Figure 6 This is a schematic diagram of the structure of an extracurricular book recommendation device provided in an embodiment of the present application. Figure 6 As shown, the device of this embodiment includes an acquisition module 61, a recall module 62, a scoring module 63 and a recommendation module 64, wherein:
[0148] An acquisition module 61 is used to acquire student information and target extracurricular books of a target student; the student information includes at least one of basic information, interest areas, and a list of history reading extracurricular books, and the target extracurricular books are input by the target student;
[0149] A recall module 62 is used to recall at least one candidate extracurricular book set from a preset extracurricular book pool based on student information and target extracurricular books according to at least one of the preset recall algorithms; the preset recall algorithm is used to calculate the relevance between the target extracurricular book and the candidate extracurricular books, and the preset recall algorithm includes: a relevance recall algorithm based on book categories, a relevance recall algorithm based on authors, a relevance recall algorithm based on behavior collaboration, and a relevance recall algorithm based on a double tower model vector;
[0150] The scoring module 63 is used for inputting the candidate extracurricular book, the student information and the target extracurricular book into the trained scoring model for each candidate extracurricular book in the candidate extracurricular book set to obtain a comprehensive score of the candidate extracurricular book; the comprehensive score is positively correlated with the correlation between the candidate extracurricular book and the target extracurricular book;
[0151] The recommendation module 64 is used to recommend candidate extracurricular books to target students according to the comprehensive scores.
[0152] In another possible implementation of the embodiment of the present application, the recall module 62 is specifically used to:
[0153] Basic information includes the grade of the target student; based on the grade of the target student, a preset extracurricular book pool is obtained from the total resource pool; the total resource pool includes preset extracurricular book pools for different grades, which include the school-designated extracurricular book list corresponding to the grade, the education department-recommended extracurricular book list, and the popular extracurricular book list in different fields;
[0154] Based on the target extracurricular book, at least one candidate extracurricular book set is recalled from a preset extracurricular book pool according to at least one of the preset recall algorithms.
[0155] In another possible implementation of the embodiment of the present application, the recall module 62 is specifically used to:
[0156] Based on the book categories, an inverted index is constructed for the preset extracurricular book pool, so that the extracurricular books under each index are sorted in reverse order according to the number of times the students have read them, so as to retrieve other extracurricular books under the book category to which the target extracurricular book belongs, and recall the extracurricular books whose number of times they have been read is greater than the preset ranking, so as to obtain the first candidate extracurricular book set;
[0157] and / or, according to the author of the target extracurricular book, searching for other extracurricular books in a preset extracurricular book pool, and recalling the extracurricular books with the same author, to obtain a second candidate extracurricular book set;
[0158] and / or, based on a preset collaborative filtering algorithm, calculating the similarity between other extracurricular books in a preset extracurricular book pool and the target extracurricular book, and recalling the extracurricular books with similarity greater than a preset similarity to obtain a third candidate extracurricular book set;
[0159] And / or, based on the double tower model vector algorithm, the item vectors of other extracurricular books in the preset extracurricular book pool and the item vector of the target extracurricular book are calculated, and the extracurricular books whose cosine similarity is greater than the preset similarity are recalled to obtain a fourth candidate extracurricular book set.
[0160] In another possible implementation of the embodiment of the present application, the scoring module 63 is further used to:
[0161] Merging at least one of the first candidate extracurricular book collection, the second candidate extracurricular book collection, the third candidate extracurricular book collection, and the fourth candidate extracurricular book collection to obtain an updated candidate extracurricular book collection; the updated candidate extracurricular book collection includes different extracurricular books;
[0162] For each candidate extracurricular book in the candidate extracurricular book set, the candidate extracurricular book, student information and target extracurricular book are input into the trained scoring model to obtain a comprehensive score of the candidate extracurricular book, including:
[0163] For each candidate extracurricular book in the updated candidate extracurricular book set, the candidate extracurricular book, student information and target extracurricular book are input into the trained scoring model to obtain a comprehensive score of the candidate extracurricular book.
[0164] In another possible implementation of the embodiment of the present application, the acquisition module 61 is further configured to:
[0165] Collect extracurricular book lists for different applicable grades and different interest areas to build a total resource pool;
[0166] Based on the applicable grade, an inverted index is constructed for the total resource pool to obtain at least one preset extracurricular book pool, so that the preset extracurricular book pool under each index includes extracurricular books corresponding to the applicable grade.
[0167] In another possible implementation of the embodiment of the present application, the device further includes a training module (not shown in the figure), and the training module is specifically used to:
[0168] Acquire history reading behavior information of different students, the history reading behavior information including history target extracurricular books and history candidate extracurricular books corresponding to the history target extracurricular books;
[0169] For any student, the history candidate extracurricular books whose reading completion rate exceeds the preset value, the history target extracurricular books corresponding to the history candidate extracurricular books, and the student's student information are taken as positive samples, and the history candidate extracurricular books whose reading completion rate does not exceed the preset value, the history target extracurricular books corresponding to the history candidate extracurricular books, and the student's student information are taken as negative samples;
[0170] The original model is trained based on positive samples and negative samples to obtain a scoring model; when the original model is trained, the training goal is to output the comprehensive history score of the candidate extracurricular books when inputting student information, history target extracurricular books, and history candidate extracurricular books.
[0171] In another possible implementation of the embodiment of the present application, the recommendation module 64 is specifically used to:
[0172] The candidate extracurricular books are sorted in descending order according to the comprehensive scores to obtain a sorting sequence, and the candidate extracurricular books before a preset position in the sorting sequence are taken as candidate extracurricular books to be recommended;
[0173] For any candidate extracurricular book that needs to be recommended, if the candidate extracurricular book meets at least one of the target recommendation reasons in the preset recommendation reasons, the target recommendation reason will be displayed when recommending the candidate extracurricular book to the target students; the preset recommendation reasons include: popular recommendations in the field, read by friends, same author, must-read extracurricular books, and new work recommendations.
[0174] An extracurricular book recommendation device provided in an embodiment of the present application is applicable to the above method embodiment and will not be described in detail here.
[0175] An electronic device is provided in an embodiment of the present application, such as Figure 7 As shown, Figure 7 The electronic device shown includes: a processor 71 and a memory 72. The processor 71 and the memory 72 are connected, such as through a bus 73. Optionally, the electronic device may further include a transceiver 74. It should be noted that in actual applications, the transceiver 74 is not limited to one, and the structure of the electronic device does not constitute a limitation on the embodiments of the present application.
[0176] The processor 71 may be a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor 71 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0177] The bus 73 may include a path to transmit information between the above components. The bus 73 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 73 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the figure, but it does not mean that there is only one bus 73 or only one type of bus 73.
[0178] The memory 72 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0179] The memory 72 is used to store the application code for executing the solution of the present application, and the execution is controlled by the processor 71. The processor 71 is used to execute the application code stored in the memory 72 to implement the contents shown in the above method embodiment.
[0180] The present application also provides a computer-readable storage medium, which may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes. Specifically, the computer-readable storage medium stores program instructions, and the program instructions are used to implement the methods in the above-mentioned embodiments.
[0181] A computer program product is also provided in an embodiment of the present application, including a computer program. When the computer program is executed by a processor, the technical solution of the above-mentioned method embodiment is implemented. The implementation principle and technical effect are similar and will not be repeated here.
[0182] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0183] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for recommending extracurricular books, characterized in that: The method comprises: Obtaining student information and target extracurricular books of a target student; the student information includes at least one of basic information, interest areas, and a list of history reading extracurricular books, and the target extracurricular books are input by the target student; Based on the student information and the target extracurricular book, at least one candidate extracurricular book set is recalled from the preset extracurricular book pool according to at least one of the preset recall algorithms; the preset recall algorithm is used to calculate the relevance between the target extracurricular book and the candidate extracurricular books, and the preset recall algorithm includes: a relevance recall algorithm based on book categories, a relevance recall algorithm based on authors, a relevance recall algorithm based on behavior collaboration, and a relevance recall algorithm based on a twin-tower model vector; For each candidate extracurricular book in the candidate extracurricular book set, the candidate extracurricular book, the student information and the target extracurricular book are input into a trained scoring model to obtain a comprehensive score of the candidate extracurricular book; the comprehensive score is positively correlated with the correlation between the candidate extracurricular book and the target extracurricular book; The candidate extracurricular books are recommended to the target student according to the comprehensive score.
2. The method according to claim 1, characterized in that: The basic information includes the grade of the student; the recalling of at least one candidate extracurricular book set from a preset extracurricular book pool according to at least one of the preset recall algorithms based on the student information and the target extracurricular book includes: Based on the grade of the target student, the preset extracurricular book pool is obtained from the total resource pool; the total resource pool includes preset extracurricular book pools for different grades, and the preset extracurricular book pool includes the school-designated extracurricular book list corresponding to the grade, the education department-recommended extracurricular book list, and the popular extracurricular book list in different fields; Based on the target extracurricular book, at least one of the preset recall algorithms is used to recall at least one of the candidate extracurricular book sets from the preset extracurricular book pool.
3. The method according to claim 1 or 2, characterized in that: The step of recalling at least one candidate extracurricular book set from the preset extracurricular book pool based on the target extracurricular book and according to at least one of the preset recall algorithms includes: Based on the book categories, an inverted index is constructed for the preset extracurricular book pool, so that the extracurricular books under each index are sorted in reverse order according to the number of books that the students have read, so as to retrieve other extracurricular books under the book category to which the target extracurricular book belongs, and recall the extracurricular books whose ranking of the number of books read is greater than the preset ranking, so as to obtain a first candidate extracurricular book set; and / or, according to the author of the target extracurricular book, searching for other extracurricular books in the preset extracurricular book pool, and recalling the extracurricular books with the same author, to obtain a second candidate extracurricular book set; and / or, based on a preset collaborative filtering algorithm, calculating the similarity between other extracurricular books in the preset extracurricular book pool and the target extracurricular book, and recalling the extracurricular books whose similarity is greater than a preset similarity to obtain a third candidate extracurricular book set; And / or, based on the twin tower model vector algorithm, the item vectors of other extracurricular books in the preset extracurricular book pool and the item vector of the target extracurricular book are calculated, and the extracurricular books whose cosine similarity is greater than the preset similarity are recalled to obtain a fourth candidate extracurricular book set.
4. The method according to claim 3, characterized in that Before inputting the candidate extracurricular book, the student information and the target extracurricular book into the trained scoring model for each candidate extracurricular book in the candidate extracurricular book set to obtain a comprehensive score of the candidate extracurricular book, the method further includes: Merging at least one of the first candidate extracurricular book collection, the second candidate extracurricular book collection, the third candidate extracurricular book collection, and the fourth candidate extracurricular book collection to obtain an updated candidate extracurricular book collection; the updated candidate extracurricular book collection includes different extracurricular books; For each candidate extracurricular book in the candidate extracurricular book set, the candidate extracurricular book, the student information and the target extracurricular book are input into a trained scoring model to obtain a comprehensive score of the candidate extracurricular book, including: For each candidate extracurricular book in the updated candidate extracurricular book set, the candidate extracurricular book, the student information and the target extracurricular book are input into the trained scoring model to obtain a comprehensive score of the candidate extracurricular book.
5. The method according to claim 2, characterized in that: Before obtaining the preset extracurricular book pool from the total resource pool, the method further includes: Collect extracurricular book lists for different applicable grades and different interest areas to build the total resource pool; Based on the applicable grade, an inverted index is constructed for the total resource pool to obtain at least one of the preset extracurricular book pools, so that the preset extracurricular book pool under each index includes extracurricular books corresponding to the applicable grade.
6. The method according to claim 1 or 2, characterized in that: The method further comprises: Acquiring history reading behavior information of different students, wherein the history reading behavior information includes history target extracurricular books and history candidate extracurricular books corresponding to the history target extracurricular books; For any student, the candidate history extracurricular books whose reading completion rate exceeds the preset value, the target history extracurricular books corresponding to the candidate history extracurricular books, and the student information of the student are taken as positive samples, and the candidate history extracurricular books whose reading completion rate does not exceed the preset value, the target history extracurricular books corresponding to the candidate history extracurricular books, and the student information of the student are taken as negative samples; Based on the positive samples and the negative samples, the original model is trained to obtain the scoring model; when the original model is trained, the training goal is to output the comprehensive history score of the candidate extracurricular book when the student information, the target history extracurricular book, and the candidate history extracurricular book are input.
7. The method according to claim 1 or 2, characterized in that: The recommending the candidate extracurricular books to the target student according to the comprehensive score comprises: Sorting the candidate extracurricular books in descending order of the comprehensive scores to obtain a sorting sequence, and taking the candidate extracurricular books before a preset position in the sorting sequence as candidate extracurricular books to be recommended; For any candidate extracurricular book that needs to be recommended, if the candidate extracurricular book meets at least one target recommendation reason among the preset recommendation reasons, the target recommendation reason will be displayed when recommending the candidate extracurricular book to the target student; the preset recommendation reasons include: popular recommendations in the field, read by friends, same author, must-read extracurricular books, and new work recommendations.
8. An extracurricular book recommendation device, characterized in that: The device comprises: An acquisition module is used to acquire student information and target extracurricular books of a target student; the student information includes at least one of basic information, interest areas, and a list of history reading extracurricular books, and the target extracurricular books are input by the target student; A recall module, for recalling at least one candidate extracurricular book set from a preset extracurricular book pool based on the student information and the target extracurricular book according to at least one of the preset recall algorithms; the preset recall algorithm is used to calculate the relevance between the target extracurricular book and the candidate extracurricular book, and the preset recall algorithm includes: a relevance recall algorithm based on book categories, a relevance recall algorithm based on authors, a relevance recall algorithm based on behavior collaboration, and a relevance recall algorithm based on a twin-tower model vector; A scoring module, for inputting the candidate extracurricular book, the student information and the target extracurricular book into a trained scoring model for each candidate extracurricular book in the candidate extracurricular book set, so as to obtain a comprehensive score of the candidate extracurricular book; the comprehensive score is positively correlated with the correlation between the candidate extracurricular book and the target extracurricular book; A recommendation module is used to recommend the candidate extracurricular books to the target students according to the comprehensive scores.
9. 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 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.
Citation Information
Cited By
Intelligent recommendation method and device for campus micro-service, recommendation equipment and storage medium
CN121524435A
